If the compiler does tree-shaking, I wonder why it takes ~4 MB just to print a message on the console using the standard library. Is there any way to do a more fine-grained breakdown of where all that code is coming from?
There is no easy way that I'm aware of. IIRC, early versions of this included the entire framework, so it's gotten a lot better.
Ah, yeah that makes sense, I'd not thought about it like that.
> IIRC, early versions of this included the entire framework, so it's gotten a lot better
Yeah, they're definitely improving things over time
I don't know if it's technically impossible or just hard to have 'tree-shaking' being done on it, so that you only get the functions/dependencies that are actually called?
See https://gitter.im/dotnet/corert?at=5b1af059178709146f21076f for some techniques to do this