Quote Originally Posted by Colin View Post
does FPC not remove unused code, variable and consts?

in my assembler/compiler, i have include 10,000 lines of code, and if my main file does nothing it will be the minimum exe size, why does FPC use 30kb that is ridiculous....
You forget that FPC has a lot of internals that needs initialization in a stock RTL. Multithreaded heap management, code page conversion tables for strings, wide string managers, thread managers, stack checking, command line parsing, virtual methods for TObject, etc