[fpc-pascal] Porting Delphi ASM code to FPC
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Aug 24 11:23:15 CEST 2009
On 24 Aug 2009, at 11:20, Graeme Geldenhuys wrote:
> I found get_frame() function definition and noticed that it is wrapped
> in IFDEF as shown below. When is the INTERNAL_BACKTRACE active? I'm
> using Core 2 Quad processor with 64bit Ubuntu Linux. Do I fall in the
> ELSE part or not?
>
> {$IFDEF INTERNAL_BACKTRACE}
> // nothing
> {$ELSE}
> function get_frame:pointer;{$ifdef SYSTEMINLINE}inline;{$endif}
> {$ENDIF}
Compile with -va and look whether the compiler defines
INTERNAL_BACKTRACE. Whether or not is irrelevant to the actual
functionality though, it works in both cases.
Jonas
More information about the fpc-pascal
mailing list