back

Free Pascal

Free Pascal (aka FPK Pascal) is a 32 and 64 bit professional Pascal compiler. It is available for different processors: Intel x86, Amd64/x86_64, PowerPC, PowerPC64, Sparc, ARM. The discontinued 1.0 version also supports the Motorola 680x0. The following operating systems are supported: Linux, FreeBSD, Mac OS X/Darwin, Mac OS classic, DOS, Win32, Win64, WinCE, OS/2, Netware (libc and classic) and MorphOS.

ダウンロードとインストール

入手先
Free Pascal - Advanced open source Pascal compiler for Pascal and Object Pascal
インストール
OS: Vine Linux 4.1
fpc-2.2.0-0.i386.rpm をダウンロード後、そのままインストールした。
# rpm -ivh fpc-2.2.0-0.i386.rpm
インストール先

最初のプログラム

hello.pas
program hello;

begin
   writeln('Hello, world!');
end.
コンパイル
$ fpc hello.pas
Free Pascal Compiler version 2.2.0 [2007/08/31] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for i386
Compiling hello.pas
Linking hello
5 lines compiled, 0.2 sec
実行
$ ./hello
Hello, world!

マニュアル

man
$ man fpc
ドキュメント
Online documentation にPDFとHTMLがある。

リンク

freepascal wiki 日本語版


Emacs 上での Pascal コードの編集

Pascal コードの編集

コード

  1. gcd1.pas

アルゴリズムの学習


Last modified: Sun Dec 16 17:07:50 JST 2007
Copyright (C) 2007 Kazushi NODA All Right Reserved.

Valid HTML 4.01 Transitional Valid CSS