[fpc-devel] Initial iPhone/iPod Touch port

Michael Van Canneyt michael at freepascal.org
Sat Jan 3 16:30:28 CET 2009

On Sat, 3 Jan 2009, Jonas Maebe wrote:

> Hello,
> I'm happy to announce that a couple of weeks back, I finally got my iPhone
> developer certificate so I could start testing the port. It turned out that
> a) the version of Mac OS X on the iPhone really is virtually the same as the
> desktop version, so I did not have to change any existing RTL code at all (I
> only had to add support for ARM hardware exceptions -- more on that below)
> b) the ARM code generator in FPC is quite good, as I did not really have to
> fix anything there (and Darwin/ARM uses the OABI rather than the EABI, so no
> problems there either)
> c) the Darwin/ARM support I added to the compiler earlier on, based on looking
> at GCC-generated code and the GCC and LLVM code generators, worked fine as
> well (that was a really unexpected but pleasant surprise -- and no, I didn't
> secretly test that on a jailbroken iPod or so, I wrote it before I even had my
> iPod :)


> Please note that creating a generally usable distribution with the appropriate
> Xcode templates itself is a significant amount of work, and that it may still
> take a couple of weeks before that gets finished.
> But apart from that: it works :)

Nonetheless: An amazing achievement, so congratulations are in order !!

The Lazarus adagio "write once compile anywhere" is getting closer again by a quantum leap :-)


More information about the fpc-devel mailing list