[fpc-pascal] si_prc.pp or prt0.as(m)?
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Nov 26 17:52:17 CET 2008
On 26 Nov 2008, at 17:03, Marco van de Voort wrote:
> In our previous episode, Jonas Maebe said:
>>> OS X afaik has parts that are equivalent to stuff in si_pr*
>>> integrated in
>>> the main program.
>>
>> No, Mac OS X uses the system-supplied crt1.o.
>
> I know, but the FPC specific stuff (the variables like
> operatingsystem_argc) moved to main?
It's in the system unit (rtl/bsd/system.pp, procedure FPC_SYSTEMMAIN;
FPC_DARWIN_PASCALMAIN and are both always defined)
The way it works is that crt1.o calls 'main', and the Pascal program
simply contains a branch to FPC_SYSTEMMAIN as its main function (or as
whatever you specify using -XM).
Jonas
More information about the fpc-pascal
mailing list