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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to