Is processor indepdnence of .NET anything new???

  • 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
 
Sriram said:
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.

How about 64-bit processor !?



And to .NET:
How about mono or dotGNU !?
And therefor how about Sparc, PowerPC ?

See:
http://go-mono.net/
http://www.dotgnu.org/


As long as you stay in MS.NET you are right.


--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp


Do you need daily reports from your server ?
http://sourceforge.net/projects/srvreport/
 
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.


Truth is in the eye of beholder... :)))

Is is true in case you wanted to optimize your program for
one processor brand. In that case you might use SSE
instructions which don't exist on, let's say, Pentium MMX.
In that case you would end up with two different versions.
In .NET optimizations are made by JIT compiler on your
current machine so you would have code that runs optimal
on each platform you put it on. In VB you had optimizations
for Pentium Pro processor only and code would run slower
on older machines. For VB.NET there is no such problem.
 
Back
Top