Compile in directly Assembler a C# application

E

Emilio

Good morning,

as subject says, is possible to compile a C# application directly in
x86 native code, bypassing IL ?

Best wishes,
Emilio
 
A

Alberto Poblacion

Emilio said:
as subject says, is possible to compile a C# application directly in
x86 native code, bypassing IL ?

Yes, look in the manuals for a tool called NGEN.EXE. ("Native code
GENerator").
 
P

Peter Duniho

Alberto said:
Yes, look in the manuals for a tool called NGEN.EXE. ("Native code
GENerator").

Some caveats:

-- ngen.exe doesn't "bypass IL" per se as the OP asked for; it
simply takes the IL-to-native step and causes it to happen earlier

-- the original IL still must be present and takes precedent; if
any dependency that exists for the IL changes, the pre-compiled native
code will be ignore, and the assembly will be JIT-ted normally
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top