[fpc-pascal] Placing binary data (resources) in object files?
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Jun 3 22:39:07 CEST 2013
On 03 Jun 2013, at 22:22, Anthony Walter wrote:
> What this means is that all string constants and typed constants are take
> up space in your executable whether your use them or not, which is not
> ideal IMO. The compiler ought to be able to detect when these constants are
> not referenced (much like not including the machine code of unused
> functions) and exclude them from the final app.
If you turn on "smart linking" (compile with -CX -XX), they will be removed by the linker.
Jonas
More information about the fpc-pascal
mailing list