473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 1556
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: K_Lee | last post by:
I documented the regex internal implementation code for both Tcl and Python. As much as I like Tcl, I like Python's code much more. Tcl's Stub interface to the external commands is confusing to...
1
by: | last post by:
Just curious, I'm reading Richter's book an it says that: "When the compiler/linker creates an executable assembly, the following 6-byte x86 stub function is emitted into the PE file's...
0
by: falcon | last post by:
Hello python-list, As I Understood, semantic may be next: def qwerty(a,a.i,b,b.i,f.j): pass Would work like: def qwerty(anonymous1,anonymous2,anonymous3,anonymous4,anonymous5):
5
by: Nick Gilbert | last post by:
Hi, I'm having problems using Flash Remoting with Web Services for ASP.NET and I've narrowed the problem down to csc.exe when it tries to compile the stub class. Flash Remoting...
0
by: feng | last post by:
I am getting error between my local code, that's making call to a remote object, and the called remote code. The error occoured after my remote object returns (I can debug to that point. And it...
3
by: wikoh | last post by:
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...
5
by: Marco | last post by:
Does anyone know of a C stub generator? Prefer open-source and/or free. This would parse the header .h file and create a .c file with stubbed out functions. This is handy for unit testing and...
1
by: Bit Byte | last post by:
PHP noob here (background in C++/C/Java though) I want to return dummy data from a stub function, this stub function should replicate data from a database. Any idea how I can write this stub...
3
by: DaveO | last post by:
My apologies for individually posting this to multiple newsgroups - my ISP won't allow multiple posts. I'm not a C programmer, so I'm looking for someone to modify some UnZip code for a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.