[fpc-pascal] Re: Hello World for Darwin ?

Brad Campbell brad at wasp.net.au
Mon Dec 15 13:38:40 CET 2008

Skybuck Flying wrote:
> I suspect cross compiling not functional.

Not unless you installed the cross compiler, no.

> I did find a free pascal compiler for Mac OS X so I ll give that one a 
> try ;)

The native compilers work fine on both Intel and PPC Macs.

I believe building *nix cross compilers on Win32 can be a bit of a bear. Something to do with 
libraries and linkers from memory (hazy as I don't do Win32)

You can relatively easily build Win32 and Darwin cross compilers on Linux.

I build for all three(4) platforms from my Linux machine.

brad at bklaptop2:~$ uname -a
Linux bklaptop2 #1 Sat Nov 29 13:35:51 GST 2008 i686 GNU/Linux
brad at bklaptop2:~$ fpc -Ppowerpc -Tdarwin test.pas
Free Pascal Compiler version 2.2.3 [2008/11/28] for powerpc
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Darwin for PowerPC
Compiling test.pas
Assembling hello_world
Linking test
5 lines compiled, 0.3 sec
brad at bklaptop2:~$ file test
test: Mach-O executable ppc

Dolphins are so intelligent that within a few weeks they can
train Americans to stand at the edge of the pool and throw them

More information about the fpc-pascal mailing list