readme.txt 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. Free Pascal Compiler
  2. Version 1.0.6
  3. ****************************************************************************
  4. * Introduction
  5. ****************************************************************************
  6. This package contains a freeware 32-bit pascal compiler for 386+. The language
  7. and the runtime library are more or less compatible to TP 7.0. Some Delphi
  8. additions have also been implemented like classes, exceptions, ansistrings
  9. and rtti.
  10. Free Pascal is currently available for the following platforms:
  11. - DOS, via the DJ Delorie's GO32V2 Dos extenders
  12. - Linux (i386), both aout and elf
  13. - OS/2 & DOS, via the EMX extender
  14. - Win32 (Win32s, Win95/98/Me/XP/2000 and WinNT)
  15. - Sun Solaris i386
  16. - BeOS i386
  17. - QNX i386
  18. - FreeBSD i386
  19. Older version of the compiler (0.99.5) is also available on:
  20. - Commodore Amiga
  21. - Atari ST
  22. More platforms will be supported in the future.
  23. ****************************************************************************
  24. * Features
  25. ****************************************************************************
  26. - high speed compiler
  27. - fully 32-bit code
  28. - language features:
  29. - almost fully compatible with Borland Pascal
  30. - partially compatible with Borland Delphi
  31. - ansi strings
  32. - exception support
  33. - RTTI support
  34. - procedure overloading
  35. - operator overloading
  36. - code optimizer:
  37. - peephole optimizer
  38. - loading of variables into registers
  39. - assembler level dataflow analyzer
  40. - stack frame eliminations
  41. - integrated BASM (built-in assembler) parser
  42. - supports ATT syntax used by GNU C
  43. - supports Intel syntax used by Turbo Pascal
  44. - can compile code into assembler source code for these assemblers:
  45. - GNU Assembler (GAS)
  46. - Netwide assembler (Nasm)
  47. - Microsoft Assembler/Turbo Assembler (Masm/Tasm)
  48. - can call external C code
  49. - smartlinking
  50. - support for the GNU debugger
  51. - IDE (currently for GO32v2 and Win32 only, in beta testing phase)
  52. - can create binaries running natively under both DOS and OS/2 (EMX version)
  53. ****************************************************************************
  54. * Requirements (Intel version)
  55. ****************************************************************************
  56. 386 processor
  57. DOS (extender GO32v2):
  58. - DOS 3.3
  59. - 4 MB RAM (8+ MB recommended)
  60. - hard disk with free space of 8 MB
  61. - DPMI server (CWSDPMI is delivered in the go32v2 distribution)
  62. Win32:
  63. - Win95/98/Me/2000/XP or WinNT
  64. - 8 MB RAM (16+ MB recommended)
  65. OS/2 and DOS (extender EMX):
  66. - either DOS 5.0 and above
  67. or OS/2 v2.x and above
  68. - 3 MB RAM (8+ MB recommended) for DOS
  69. or 8 MB (12 or more MB recommended depending on OS version) for OS/2
  70. - EMX or RSX (for DPMI) runtime package (part of OS/2 distribution)
  71. - TZ variable in your environment (in your CONFIG.SYS at best);
  72. you should normally have it there anyway, it may only be missing
  73. on older OS/2 versions (<= 3.0)
  74. BeOS:
  75. - GNU Utilities and development tools pre-installed (as and ld)
  76. - BeOS 4.5 or later
  77. ****************************************************************************
  78. * Quick start
  79. ****************************************************************************
  80. Download dos106.zip (version for DOS) or w32106.zip (version for
  81. Win9x/NT) or os2106.zip (EMX version - for OS/2 and DOS) and unzip it
  82. into a temporary directory.
  83. Start the install program INSTALL.EXE and follow the instructions.
  84. Don't forget to set the path as mentioned by the install program.
  85. To test the compiler, change to the demo directory of the compiler
  86. and type
  87. ppc386 hello
  88. hello
  89. ****************************************************************************
  90. * The packages of the distribution
  91. ****************************************************************************
  92. All standard packages contain a part that is specific for the target platform
  93. and a few files which are target independent. All files are also available
  94. as separate files to reduce file size if the default file is too big.
  95. dos106.zip specific:
  96. ----------------------
  97. basego32.zip contains a DOS (Go32V2) compiler, runtime library and
  98. additional files
  99. asldgo32.zip contains additional GNU utilities which are necessary:
  100. AS 2.9.1 for Go32V2
  101. LD 2.9.1 for Go32V2
  102. AR 2.8.1 for Go32V2
  103. Strip 2.8.1 for Go32V2
  104. makego32.zip contains additional GNU utilities which might be useful to
  105. compile the run time library:
  106. Make 3.79.1
  107. RM 3.16
  108. CP 3.16
  109. MV 3.16
  110. PWD 3.16
  111. GInstall 3.16
  112. GDate 3.16
  113. GEcho 3.16
  114. UPX 1.20
  115. gdbgo32.zip contains the GNU Debugger 4.18 with pascal support for Go32V2
  116. w32106.zip specific:
  117. ----------------------
  118. basew32.zip contains a Win32 compiler, runtime library and
  119. additional files
  120. asldw32.zip contains additional GNU utilities from MinGW32 which are
  121. necessary:
  122. AS 2.9.5 for Win32
  123. LD 2.9.5 for Win32
  124. AR 2.9.5 for Win32
  125. Strip 2.9.5 for Win32
  126. WindRes 2.9.5 for Win32
  127. DLLTool 2.9.5 for Win32
  128. makew32.zip contains additional GNU utilities which might be useful to
  129. compile the run time library:
  130. Make 3.79.1
  131. RM 3.16
  132. CP 3.16
  133. MV 3.16
  134. PWD 3.16
  135. GInstall 3.16
  136. GDate 3.16
  137. GEcho 3.16
  138. UPX 1.20
  139. gdbw32.zip contains the GNU Debugger 4.18 with pascal support for Win32
  140. os2106.zip specific:
  141. ----------------------
  142. baseemx.zip contains an EMX (OS/2 and DOS) compiler, runtime library and
  143. additional files
  144. asldemx.zip contains additional GNU utilities which are necessary:
  145. AS 2.9.1 for EMX
  146. LD for EMX
  147. EMXBIND 0.9d
  148. AR 2.9.1 for EMX
  149. NM 2.9.1 for EMX
  150. GASP 1.2 for EMX
  151. ObjCopy 2.9.1 for EMX
  152. ObjDump 2.9.1 for EMX
  153. Strip 2.9.1 for EMX
  154. RANLIB 2.9.1 for EMX
  155. utilemx.zip contains additional GNU utilities which might be useful to
  156. compile the run time library:
  157. Make 3.76.1
  158. RM 3.13
  159. CP 3.13
  160. MV 3.13
  161. ChMod 3.13
  162. PWD 1.12
  163. Install 3.13
  164. Date 1.12
  165. Echo 1.12
  166. gdbemx.zip contains the GNU Debugger 4.16 for EMX,
  167. PMGDB (Presentation Manager add-on for GDB) and GPROF 2.9.1
  168. common files in dos106.zip, w32106.zip and os2106.zip:
  169. ------------------------------------------------------------
  170. demo.zip contains some demo files
  171. doc-pdf.zip contains the documentation in PDF format
  172. doc-html.zip contains the documentation in HTML format
  173. install.exe installation program
  174. install.dat installation data
  175. readme.txt this readme file
  176. whatsnew.txt what's been changed
  177. Optional source package src106.zip:
  178. -------------------------------------
  179. basesrc.zip contains the basic Makefiles needed for the source tree
  180. compsrc.zip contains the compiler sources
  181. rtlsrc.zip contains the runtime library sources
  182. fclsrc.zip contains the Free Component Library sources
  183. pkgssrc contains the packages (various units) sources
  184. utilssrc.zip contains the Utilities sources
  185. instsrc.zip contains the installer sources
  186. docsrc.zip contains the TeX sources of the doc
  187. ****************************************************************************
  188. * Documentation
  189. ****************************************************************************
  190. The documentation is available as HTML pages, PDF, PS, and text although the
  191. recommended format is pdf. These are all available on
  192. ftp://ftp.freepascal.org/fpc/docs
  193. NB that there is at present no FPC specific documentation for the Win32
  194. system functions. There is a note in the ftp /doc explaining where
  195. the MS help file for this can be obtained.
  196. ****************************************************************************
  197. * Suggestions, Help, Bug reporting, snapshots, ...
  198. ****************************************************************************
  199. Suggestions, Help ...
  200. ---------------------
  201. e-mail: [email protected] (bugs, developer related qs)
  202. e-mail: [email protected] (general pascal related qs)
  203. Both these adresses are for mailing lists. If you're not subscribed,
  204. be sure to mention this fact when sending questions to these lists,
  205. so that people sending answers know about it and send you a copy.
  206. Information about available lists and subscription can be found
  207. on http://lists.freepascal.org/mailman/listinfo
  208. www: http://www.freepascal.org
  209. ftp: ftp://ftp.freepascal.org/fpc
  210. (several mirrors exist, see website for links)
  211. Additional information about mailing lists, news, future plans etc.
  212. can be found on the web site.
  213. SNAPSHOTS & SOURCES
  214. -------------------
  215. One of the features of FPC is the snapshots. These are made daily or weekly
  216. from the developers' latest versions of the source. Snapshots are available
  217. for the GO32v2, Win32, OS/2 and Linux versions of the compiler/rtl. Snapshots
  218. are also available for the go32v2 & Win32 IDEs, and for FV, FCL, GTK and
  219. utils for GO32v2 and Win32. The latest snapshots are in: ftp... /fpc/snapshot/
  220. in appropriately named .zip/tar files.
  221. You will also normally find in the snapshot archive file a readme, with
  222. a note about the latest included changes. It is quite common, though it doesn't
  223. always happen, that when a bug is reported it is fixed and a fixed version
  224. can be obtained the NEXT day in the appropriate snapshot.... yes really!
  225. Also on the ftp site you'll find a /dist directory, with the latest
  226. distributed releases, a /docs directory, and a /source directory, in
  227. which every night at about 0100 GMT the latest source generated by the
  228. developers during the day & evening before is exported from CVS
  229. into ZIP files eg compiler.zip, rtl.zip, base.zip etc.
  230. Making your own snapshots
  231. -------------------------
  232. By downloading the /source files (makefiles are included)
  233. it is possible to to make your own version of the fpc compiler/rtl
  234. and to modify it. You are of course free to do this
  235. so long as you observe the licence conditions. In order to make the
  236. compiler/rtl & ides in a resonable time (eg <30 minutes) you'll need at least
  237. 32M of physical memory (64M is better) memory and at least a 200 Mhz processor
  238. and at least 20 Mbytes of free disk space. You'll also need
  239. some knowledge of making files & programming... it is not
  240. difficult but it isn't easy either!
  241. REPORTING BUGS
  242. ----------------
  243. If you find a bug in the released version, you may want to try a snapshot
  244. (see SNAPSHOTS above) to see if it has been fixed before reporting it to
  245. the fpc-devel mailing list.
  246. If you find a fault or 'feature' in a release, please report it
  247. to the fpc-devel mailing list. PLEASE SEND ALSO A SMALL EXTRACT OF THE SOURCE
  248. CODE which caused the problem, and state the version eg Win32, GO32v2,
  249. and the date of the compiler etc on which you noticed the problem & any other
  250. useful info so the developers can reproduce the problem, otherwise they may
  251. not be willing/able to fix it.
  252. ****************************************************************************
  253. * License
  254. ****************************************************************************
  255. The compiler and most utilities and executables distributed in this package
  256. fall under the GPL, for more information read the file COPYING.GPL.
  257. Some specific utilities and programs come under the license described in
  258. COPYING.DJ or COPYING.EMX.
  259. The documentation, unless otherwise noted, is distributed as free
  260. text, and is distributed under the GNU Library General Public
  261. License.
  262. The runtime library, package libraries, free component library, and
  263. other libraries which are used to create executables by the compiler
  264. come under a modified GNU Library General Public license. Additional
  265. informations about the library licenses are found in COPYING.FPC.
  266. NOTE: OS/2 version of the installer uses the library UNZIP32.DLL from
  267. Info-ZIP. Info-ZIP's software (Zip, UnZip and related utilities)
  268. is free and can be obtained as source code or executables from
  269. Internet/WWW sites, including http://www.info-zip.org.