4 ms·
AOT Java images are also around 4 MB. Maybe the GC in both takes up around 4 MB?
by chrisseaton 8y ago
AOT Java images are also around 4 MB. Maybe the GC in both takes up around 4 MB?
- coldacid 8y agoThe GC code isn't _that_ big. It's because AOT compilers tend to turn each assembly/package into a single code object for linking, instead of a library of objects that can be filtered to just the code needed.
- chrisseaton 8y agoI thought most AOT tools did tree shaking, or whole-world analysis?
- matthewwarren 8y agoI just double checked and you're right, the GC code is pretty small. The 0.49 MB run-time `Test.CoreLib` (http://mattwarren.org/2018/06/07/CoreRT-.NET-Runtime-for-AOT/#helloworld http://mattwarren.org/2018/06/07/CoreRT-.NET-Runtime-for-AOT...) includes the GC as well.