dotnet / runtimelab

This repo is for experimentation and exploring new ideas that may or may not make it into the main dotnet/runtime repo.
MIT License
1.36k stars 188 forks source link

[NativeAOT-LLVM] Do not force sections for 'ordinary' data #2547

Closed SingleAccretion closed 2 months ago

SingleAccretion commented 2 months ago

Forcing sections disables the default behavior of -fdata-sections, inhibiting linker GC, and also forces strict alignment packing.

This does not save a lot, due to how the ILC-produced data is structured, but does save a bit: 5K for WasmDebugging, 12K for HelloWasm.

SingleAccretion commented 2 months ago

@dotnet/nativeaot-llvm