readme.txt 11 KB

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