Forum > Windows

How to reduce EXE program size?

<< < (10/14) > >>

y.ivanov:
Completely empty Win32 console program:

Delphi7: 14 848 bytes
FPC 3.1.1: 32 768 bytes

No debug info, no RT checking

marcov:

--- Quote from: y.ivanov on April 11, 2021, 08:07:57 pm ---Completely empty Win32 console program:

Delphi7: 14 848 bytes

--- End quote ---

NOT UNICODE


--- Quote ---FPC 3.1.1: 32 768 bytes

No debug info, no RT checking

--- End quote ---

UNICODE.

So to make a fair comparison at least use D2009. We all know that Turbo Pascal 3 also made smaller binaries, but that is not of much use now (unless you compare to the 16-bit dos port)

marcov:

--- Quote from: Fred vS on April 11, 2021, 07:31:22 pm ---No, I was not thinking about Windows but embedded solutions that have few memory, mainly using Linux.

--- End quote ---

The point is that embedded solutions don't use full target RTLs, so comparing with that is useless.

PascalDragon:

--- Quote from: marcov on April 11, 2021, 07:21:20 pm ---Unless you are still nursing one of those notorious Windows NT4 based printers :-)  (and FPC doesn't support <XP anymore)

--- End quote ---

Though that's not a problem of the compiler, but more of the RTL. So when throwing out features to decrease the RTL size one might possible get back support for NT4 or 9x back as well :P

y.ivanov:
@marcov
Sorry, that is what I have  :(

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version