The worst thing about the delphi XE+ compiler is that it leaves dead i.

The worst thing about the delphi XE+ compiler is that it leaves dead i.e. unused code in generated binaries. It is very easy to prove, just create an empty console application and compile it. The size will be approximately 190kb. The project is empty and only System.SysUtils is used. Now add System.Classes to the uses list and compile the project. Its size will become near 600 kb. This is stupid, I didn't use any of System.Classes functions or objects, why are they present in the binary? Please don't say that this is made for extended RTTI support. This is bullshit. You just didn't spend enough time on optimizing the linker.
Please fix this, I think it's not so hard to do. We just want to deploy our application in many small dll's. Now it makes no sense as every dll adds 500kb and more waste space to the distributive.

Comments