FlierMate, the compiler option I meant is -Xg
It made the EXE larger: 33,811 bytes. If I just type "FPC firstapp.pas" without the "-Xg" then it generates 33,280 bytes.
49KB EXE is a result compiling it in the IDE itself.
That's the quick fix. Commenting some initializations in various standard units and maintain that as a custom RTL. Think about things like localisation, timezone support, thread support etc. Slightly harder is returning the string support back to the pre unicode level.
Ah, I see. I'll do it if I have special needs. Thanks.
BTW, years ago, I remember the EXE was way smaller. Looks like the RTL has grown over the years.
Not trivial and not for a one week-end project, I would say.
True.
And I agree with you completely, there is always pros and cons. Usually we could not please everyone.
Hum, not so small as GCC
with gcc 64 bit linux: 12.5 Kb.
If one coded using Assembler, a "Hello World" EXE as small as 1,024 bytes is possible. But of course it would be a lot more diificult to code in that language.