Trình biên dịch Pascal miễn phí Phiên bản 2.0.4***************************************************************************** Giới thiệu****************************************************************************Xin vui lòng cũng đọc các nền tảng cụ thể tập tin README, nếu nó tồn tại.Gói này chứa một trình biên dịch pascal 32-bit/64-bit phần mềm miễn phí nâng cao nhấtmột số nền tảng. Ngôn ngữ và thư viện runtime là gần như tương thíchvới Turbo Pascal 7.0 và tại Delphi bản phát hành. Đó cũng là một phầnhỗ trợ cho các phương ngữ pascal Macintosh.Miễn phí Pascal 2.0.4 là hiện có sẵn cho các nền tảng sau đây:Linux-i386Linux-x86_64 (amd64)Linux-cánh tay (qua biên dịch môi trường cho Linux-i386)-Win32 (Win95/98/Me/XP/2000 và WinNT)OS/2-i386 (OS/2 cong v3.0, 4.0, WarpServer cho e-kinh doanh và eComStation)FreeBSD-i386-Mac OS X / Darwin cho PowerPCLinux-powerpcNhững nền tảng có thể được cung cấp sau đó:-Mac OS (cổ điển) cho PowerPCNetware-i386-NetwLibc-i386 (LibC sẽ được ưu tiên API theo phiên bản Netware mới hơn)Linux-sparcCó các nền tảng khác mà đang làm việc nhiều hơn hoặc ít hơn, nhưng cóhiện nay không có duy trì cho họ và do đó chúng tôi không thể cung cấp đầy đủhỗ trợ. DOS (i386) bằng cách sử dụng extender GO32v2 DOS là một ví dụ,Các ví dụ khác sẽ bao gồm các biến thể của BSD, vv, và đó là ítmột phần có liên quan cho nền tảng đánh dấu là có thể cung cấp sau đó trong danh sáchở trên. Nếu bạn muốn thay đổi tình trạng này và tạo ra và duy trìPhiên bản cho các nền tảng khác và các mục tiêu, vui lòng liên hệ với chúng tôi, e-mailđịa chỉ được liệt kê dưới đây.***************************************************************************** Features****************************************************************************- high speed compiler- fully 32 or 64-bit code - 32 bit compiler can be on x86_64 Linux distributions to compile 32 bit applications- language features: - almost fully compatible with Borland Pascal and Borland Delphi - ansi strings - wide strings - exception support - RTTI support - procedure overloading - operator overloading - COM, CORBA and raw interfaces support - dynamic array support - variant support - inlining- code optimizer: - peephole optimizer (80x86 only) - jump optimizer - loading of variables into registers - assembler level dataflow analyzer (80x86 only) - stack frame eliminations - sophisticated register allocator- integrated BASM (built-in assembler) parser - supports ATT syntax used by GNU C - supports Intel syntax used by Turbo Pascal (80x86-only)- can compile code into assembler source code for these assemblers: - GNU Assembler (GAS) - Netwide assembler (Nasm) - Microsoft Assembler/Turbo Assembler (Masm/Tasm) - Watcom assembler (wasm)- internal assembler for ultra fast object file generation- can call external C code - h2pas utility to convert .h files to Pascal units- smartlinking (not yet supported under Mac OS X)- support for the GNU debugger- integrated development environment - powerfull user friendly Wordstar compatible multi file editor - context sensitive help supports help files in HTML, Windows HLP and Borland TPH format. - debugger on most platforms- can create binaries running natively under both DOS and OS/2 (EMX version)- no need for Linux distribution specific binaries, programs you write run on all distributions- high quality documentation***************************************************************************** Minimum requirements****************************************************************************i386, x86_64, PowerPC or Sparc processorWin32: - Win95/98/Me/2000/XP or WinNT - 16 MB RAMOS/2: - OS/2 Warp v3.0 with one of late fixpaks - FP 35 should be fine, OS/2 Warp v4.0 with FP 5 and above, WSeB, MCP or any eComStation version (OS/2 2.0/2.1 currently not supported, not even for compiled programs)Linux: - system running a 2.2.x kernelFreeBSD:- FreeBSD 4.x system or 5.x system that has COMPAT_4 system (which is default)Mac OS X: - Mac OS X 10.1 and higher (10.0 may also work, but is untested)Mac OS (classic) - Mac OS 9.2 has been tested, should probably also work from 7.5.3 and up.***************************************************************************** Quick start - Win32****************************************************************************Download the distribution package (fpc-2.0.4.i386-win32.exe) and run it- it is a self-extracting installer, so just follow the instructionsto install it. Don't forget to set the PATH environment variable if youinstall FPC under Win95/98/ME (the installer should do it automaticallyunder WinNT/2k/XP).To test the compiler, change to the demo exts directory of the FPC treeand type fpc hello hello***************************************************************************** Quick start - OS/2 / DOS****************************************************************************Download distribution archive (os2204.zip for OS/2 or dos204.zip forGO32v2) and unzip it into a temporary directory.Start the install program INSTALL.EXE and follow the instructions.
Don't forget to set the path as mentioned by the install program.
To test the compiler, change to the demo exts directory of the FPC tree
and type
fpc hello
hello
****************************************************************************
* Quick start - Linux/FreeBSD
****************************************************************************
Download fpc-2.0.4.-.tar and untar into a temporary directory.
Start the install script with ./install.sh and follow the instructions.
To test the compiler, change to the demo/texts directory of the FPC tree
and type
fpc hello
hello
****************************************************************************
* Quick start - Mac OS X/Darwin
****************************************************************************
There are two methods to install Free Pascal for Mac OS X.
1) Download and install the Mac OS X package (fpc-2.0.4.powerpc-macosx.dmg)
This gives you the Free Pascal Compiler and the Xcode integration kit.
2) Install fpc using fink
This gives you the Free Pascal Compiler, including all libraries, packages
and units from its sources, including Free Vision and the IDE, which partly
works using X11 xterm.
With method 1 follow the instructions to install the XCode integration kit
at:
http://www.freepascal.org/xcode.html
Method 2 is mainly meant for using the compiler through the command
line. Fink takes care of setting the PATH variable. You can (under
Mac OS X 10.2.x or earlier you actually have to) also use the command line
with Free Pascal installed using method 1. The main point is to change your
PATH as described below:
The compiler is called "fpc" and will be installed in /usr/local/bin. This
directory may not be in your PATH yet (if you type "fpc" in a Terminal
window and you get something like "fpc: command not found", then it isn't).
If the installation directory is not yet in your PATH, you will have to add
it. To get an idea, how to do this, follow the instructions at:
"http://fink.sourceforge.net/doc/users-guide/install.php#setup"
to determine which file you have to edit, but instead of adding the line
suggested there, add the following at the end:
- if your shell is the Bourne shell (bash):
export PATH=/usr/local/bin:$PATH
When using Terminal.app add this to ".bash_profile",
when using the X11 xterm add this to ".bashrc".
If these files do not exist yet in your home directory, you have to create
them, for example with nano (or any other text editor):
nano .bash_profile
- if your shell is the C Shell (csh or tcsh):
setenv PATH /usr/local/bin:${PATH}
Next, close the Terminal window and open a new one. Now, the PATH should
be set correctly. After installing the package, you can write your
source code in your favorite editor (including Project Builder and XCode).
To compile something, go to the directory containing your source files in
Terminal and type:
fpc name_of_your_source_file
The compiler only accepts one file name as argument, but will automatically
search for and compile any units used by the specified source file. Run
"fpc" without any arguments to get an overview of the possible command line
options.
****************************************************************************
* Documentation
****************************************************************************
The documentation is available as HTML pages, PDF, PS, and text although the
recommended format is pdf. These are all available on
ftp://ftp.freepascal.org/fpc/docs
NB that there is at present no FPC specific documentation for the Win32
system functions. There is a note in the ftp /doc explaining where
the MS help file for this can be obtained.
****************************************************************************
* Suggestions, Help, Bug reporting, snapshots, ...
****************************************************************************
Suggestions, Help ...
---------------------
e-mail: fpc-devel@lists.freepascal.org (bugs, developer related questions)
e-mail: fpc-pascal@lists.freepascal.org (general pascal related questions)
Both these adresses are for mailing lists. If you're not subscribed,
be sure to mention this fact when sending questions to these lists,
so that people sending answers know about it and send you a copy.
Information about available lists and subscription can be found
on http://lists.freepascal.org/mailman/listinfo
Web forum: http://community.freepascal.org:10000 (all questions)
WWW: http://www.freepascal.org
FTP: ftp://ftp.freepascal.org/fpc
(several mirrors exist, see website for links)
Additional information about mailing lists, news, future plans etc.
can be found on the web site.
SNAPSHOTS & SOURCES
----------
đang được dịch, vui lòng đợi..