Skip to content

AOT: analyze trimmed assemblies pre native compilation #97288

Discussion options

You must be logged in to vote

IL level trimming (done with the ILLink) does trimming in a way that assumes the output will be IL again. So often it cannot trim as well as it could if the output wasn't IL. PublishAot uses "trimming" that is built-in to the AOT compiler. One of the tasks of the AOT compiler is to figure out what native code to generate (IL and native code don't have a 1:1 relationship due to things like generics). "Trimming" happens naturally as part of this process: the AOT compiler is not really removing stuff, it's just not generating stuff.

The trimming done by the compiler is not expressible in terms of IL, so you'd not be able to get working assemblies out of it. If you just want to see what is in…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dlosch
Comment options

@MichalStrehovsky
Comment options

Answer selected by dlosch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants