[fpc-devel] Debug Info proposal

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Jan 12 18:49:09 CET 2008

On 12 Jan 2008, at 18:39, Fabio Dell'Aria wrote:

> Why do not simple add an option to avoid the debig info storing for  
> all unit
> under a specified file path?
> Example: LCL or FCL (just setting a file path and the FPC just do  
> not store
> debug info of all units under this path).
> What do you think about this?

The FCL in release versions of FPC does not contain any debug info. In  
general: if you do not want debug info for certain units, do not  
compile them with debug info.

On most platforms the linker is not inside FPC, so we cannot control  
in detail which sections from which object files end up in the final  
executable (so we cannot exclude the debug info of object files stored  
in particular locations).

Not to mention that spending time on such a feature would be purely  
wasted time. If people don't use FPC only because using debug info  
increases the size of their executable: it's their loss, not ours  
(people who cannot grasp this concept, which is quite common in many  
tool chains on many different platforms, would probably simply find  
something else to nitpick about because it is somehow different that  
what they are used to).


More information about the fpc-devel mailing list