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

Sven Barth pascaldragon at googlemail.com
Mon Aug 23 11:55:10 CEST 2010


Am 23.08.2010 11:15, schrieb Jonas Maebe:
>
> 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).

I should remember this ^^

Is there any comment about the function name restrictions mentioned in 
Thomas' mail? In what regards is DWARF better suited than stabs (besides 
64-bit support)? Or is there even a FPC wiki page about the pros and 
cons of the two debug formats?

Regards,
Sven



More information about the fpc-devel mailing list