Compile in directly Assembler a C# application

  • Thread starter Thread starter Emilio
  • Start date Start date
E

Emilio

Good morning,

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

Best wishes,
Emilio
 
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").
 
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
 
Back
Top