[fpc-devel] Which unit does -gl parameter use?

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Aug 23 11:15:41 CEST 2010

On 23 Aug 2010, at 11:03, Sven Barth wrote:

> According to the code in compiler\pmodules.pas (~659) (see below)  
> the compiler decides this depending on the used debug format. I  
> might be wrong, but for Linux this should be dwarf.

As a rule of the thumb, the default debug informat for 32 bit  
platforms (except for iPhoneOS/iOS) is stabs and that for 64 bit  
platforms is DWARF. You can force one or the other using -gw/-gs  
(although stabs generally doesn't work very well on 64 bit platforms).


More information about the fpc-devel mailing list