Open VSadov opened 1 year ago
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.
Author: | VSadov |
---|---|
Assignees: | - |
Labels: | `area-NativeAOT-coreclr` |
Milestone: | - |
The flag indicates that the compiled module is a singlefile executable and can drive some optimizations.
Single file executable is a common enough scenario that c++ compiler has a switch for it. ILC could benefit from such switch as well.
Re: #87148 (comment)
it will do reduce file size ??
it will do reduce file size ??
Yes. linker can replace more complex code for the dynamic case with more efficient instructions if it is known at link time that we are linking an executable. However, the size redundancy will still be there.
The size difference would vary between platforms. On some platforms like linux-x64 the size difference is relatively small, but on others it would be more noticeable: See for example https://github.com/dotnet/runtime/pull/87148#discussion_r1234559333
The flag indicates that the compiled module is a singlefile executable and can drive some optimizations.
Single file executable is a common enough scenario that c++ compiler has a switch for it. ILC could benefit from such switch as well.
Re: https://github.com/dotnet/runtime/pull/87148#discussion_r1226018085