Sign in Join
Wiki copytemporary

Revision 2 of 3, by WikiArchive on 11-4-2026. The page as it is now.

Cross Compile with FPC for ARM

Overview

These instructions cover cross compiling to Linux on ARM. See arm-wince for instructions on cross-compiling to Windows CE on ARM.

Cross compile with FPC for ARM (e.g. Zaurus)

pascal
cd somedir
    tar zxvf arm-linux-fpc.i386-linux-20050217.tar.gz
pascal
mkdir -p /usr/local/lib/fpc/1.9.7/units
    cp -fr lib/fpc/1.9.7/units/arm-linux /usr/local/lib/fpc/1.9.7/units/
pascal
cp lib/fpc/1.9.7/ppcarm /usr/local/lib/fpc/1.9.7
pascal
ln -sf /usr/local/lib/fpc/1.9.7/ppcarm /usr/local/bin/ppcarm
pascal
ppcarm -iV
pascal
cd somedir
    tar zxvf binutils.tar.gz
pascal
cp arm-linux-* /usr/local/bin
pascal
echo "program hello; begin writeln('Hello World'); end." > hello.pas
    ppcarm -XParm-linux- hello.pas
pascal
# ppcarm -XParm-linux- hello.pas
    Free Pascal Compiler version 1.9.7 [2005/02/17] for arm
    Copyright (c) 1993-2005 by Florian Klaempfl
    Target OS: Linux for ARM
    Compiling hello.pas
    Assembling hello
    Linking hello
    1 Lines compiled, 0.2 sec
pascal
scp hello zaurus:/home/zaurus
pascal
./hello
pascal
Hello World

From the Free Pascal wiki, page "Cross Compile with FPC for ARM", as the Internet Archive kept it on 2022-08-07. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.