Skip to content
Discussion options

You must be logged in to vote

It's an ahead-of-time compiler which generates native code and saves it into the managed assembly in a R2R format, so that the runtime can load and execute those native code from the assembly directly on startup without need of jitting them. Basically, it is used for speeding up the startup.

Note that crossgen2 won't generate native code for all your code (as some are versionable while some others require dynamic code generation or runtime generic instantiation, etc.), so it still needs IL code for JIT.

is still IL code ,not native code

It's a mix of IL code and native code

If you are looking into a way to build your app and run it without the need of JIT, you can check out ilc, which i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by minxuanz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants