Runtime: Is possible remove IL code from xxx.ni.dll compiled by CrossGen?

Created on 2 Dec 2017  路  2Comments  路  Source: dotnet/runtime

@hzexe commented on Sat Dec 02 2017

To software protection锛宭ike .NET Native.

area-CrossGeNGEN-coreclr up-for-grabs

Most helpful comment

Is possible remove IL code from xxx.ni.dll compiled by CrossGen?

Some IL could probably be removed but some of it must stay, crossgen isn't a full AOT compiler. For example, the IL of generic methods has to stay because the compiler has no way to know what instantiations may be needed at run time.

To software protection锛宭ike .NET Native.

The .NET Core/Open Source version of .NET Native is https://github.com/dotnet/corert. Still "work in progress" though.

All 2 comments

There is no command line option to do that today, but it should not be hard to add one. We will be happy to accept PR to add it.

Of course, the features and tools that depend on the IL being present are not going to work with the IL removed.

Is possible remove IL code from xxx.ni.dll compiled by CrossGen?

Some IL could probably be removed but some of it must stay, crossgen isn't a full AOT compiler. For example, the IL of generic methods has to stay because the compiler has no way to know what instantiations may be needed at run time.

To software protection锛宭ike .NET Native.

The .NET Core/Open Source version of .NET Native is https://github.com/dotnet/corert. Still "work in progress" though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jkotas picture jkotas  路  3Comments

Timovzl picture Timovzl  路  3Comments

matty-hall picture matty-hall  路  3Comments

aggieben picture aggieben  路  3Comments

nalywa picture nalywa  路  3Comments