.NET Processor indpendence ???

  • Thread starter Thread starter Sriram
  • Start date Start date
S

Sriram

Hi,
I have worked in VB6 and now I have started working
in VB.Net.It is said that .NET code is platform
independent atleast within Windows operating systems.
which I understand is made possible through IL which is
processor and OS independent.
My question is if we have a VB 6 exe that too runs on all
windows operating systems and on Intel , AMD and Cyrix
processors ( not very sure about this as I have run only
on Intel !) even though we have compiled in on one specifi
machine (say an intel machine) .
VB6 is compiled to native code (whoch ties it to t he
platform) and still it runs on all these windows
platforms .
Can anybody explain how this possible?

Also please check out the following link :
http://www.mastercsharp.com/article.aspx?
ArticleID=20&&TopicID=10
and look under subtopic Processor independence. . it says
that with VB/C ++ we had to make separate build for each
processor. I dont think this is true.

Please comment on this.

Thanking you in advance.

Regards,
Sriram
 
Hi,

Code compiled up for the x86 architecture will run fine on these
processors - otherwise everybody would need to ship 3 versions of
everything. You'd run into problems running the code on a Motorola
processor, for example. Where you CAN run into problems is with code that is
custom written for a given particular processor - the SIMD processing units
on Intel and AMD processors, for example. Code compiled up in VB .NET will
run on anything that'll run Windows.

Steve
 
Back
Top