471,596 Members | 948 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,596 software developers and data experts.

Why the machine code stub?

Why do .net compilers build exe:s with a piece of machine code in the
beginning to launch clr/jit? That makes the program no longer cpu independent
but still slow because the app itself (msil) must be compiled... Are .net
DLLs the same, ie they have to be for the right cpu?
Aug 15 '05 #1
3 1467
Wikoh,

Did you know that you could use in past not a floppydisk from computer
branch a on a computer from branche b.

Some things needs time.

Just my thought,

Cor
Aug 16 '05 #2
doh,

read for branch and branche, brand

Cor
Aug 16 '05 #3

"wikoh" <wi***@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
Why do .net compilers build exe:s with a piece of machine code in the
beginning to launch clr/jit? That makes the program no longer cpu
independent
but still slow because the app itself (msil) must be compiled... Are .net
DLLs the same, ie they have to be for the right cpu?


That stub should just be used to launch the executables on non-CLR aware
platforms(win9x and 2k come to mind, I'm not sure about the others.) Mono
and other hosts detect that it is a managed executable(as memory serves
there is a flag in the PE header) and launches the CLR directly instead of
using the stub. I don't think it should cause you any platform independence
isuses.

I imagine Win64 does this as well, although I don't know for sure.
Aug 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Nick Gilbert | last post: by
3 posts views Thread by wikoh | last post: by
5 posts views Thread by Marco | last post: by
3 posts views Thread by DaveO | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.