Salinan wikimirror

Ini adalah mirror wiki di pascal.chat. Penyuntingan, riwayat, dan proses masuk ada di sana.

Setup Cross Compile For ARM/id

Bahasa Indonesia · English · Español · Magyar · Русский

Kompilasi Silang dengan FPC untuk ARM (misalnya Zaurus)

cd somedir
tar zxvf arm-linux-fpc.i386-linux-20050217.tar.gz

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/

cp lib/fpc/1.9.7/ppcarm /usr/local/lib/fpc/1.9.7

ln -sf /usr/local/lib/fpc/1.9.7/ppcarm /usr/local/bin/ppcarm

ppcarm -iV

cd somedir
tar zxvf binutils.tar.gz\

cp arm-linux-* /usr/local/bin\

echo "program hello; begin writeln('Hello World'); end." > hello.pas
ppcarm -XParm-linux- hello.pas\

text
 # 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

scp hello zaurus:/home/zaurus

./hello

text
Hello World

From the Free Pascal wiki, page "Setup Cross Compile For ARM/id", as it stood on 2015-07-14 after a change by FTurtle, out of the wiki's dump of 2024-05-26. 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.

Revisi 2, terakhir diubah oleh WikiArchive .