README 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. This directory contains the sources of the Free Pascal Compiler
  2. To recompile the compiler, use the batch file
  3. mppc386.bat
  4. If you want to build a m68k version to cross compile from i386 to m68k
  5. use the batch file
  6. mppc68k.bat
  7. If you want to compile/modify the compiler, please read first the
  8. programmers manual.
  9. Changes in the syntax or semantic of FPC:
  10. -----------------------------------------
  11. 28/01/99 implicit conversion from boolean to integer is not possible
  12. anymore (solved several bugs) but this could lead to errors
  13. on previously accepted code (PM)
  14. 01/02/99 c styled comments are supported (/* ... */), mainly
  15. for the Sibyl sources of Medigo (FK)
  16. 02/02/99 class destructors take now two parameters: flag
  17. if the helper routine should free the instance and
  18. self pointer (FK)
  19. 22/02/99 PROTECTED and PRIVATE have now the same behavior
  20. as in TP
  21. 09/03/99 small records and arrays passed by value to a function are now directly copied
  22. into a 4 bytes parameter (needed for C and DLL calls) (PM)
  23. 11/03/99 the makefile.fpc is now also needed for the compiler and RTL, you can
  24. find it in the base.zip package (PFV)
  25. 24/03/99 new directives UNITPATH,INCLUDEPATH,OBJECTPATH,LIBRARYPATH to
  26. set the searchpaths where to find the files for that module (PFV)
  27. 25/03/99 new directive STATIC +/- or on/off , works like -St commandline
  28. switch
  29. 02/04/99 rtl/cfg/ directory has been removed, it's not used anymore
  30. 15/04/99 FINALIZATION is supported
  31. 21/04/99 Default assembler for i386 changed to AT&T instead of direct
  32. 25/04/99 initialized vars supported in Delphi mode (only $J+ mode)
  33. getting the address of an untyped const is now
  34. forbidden as in BP
  35. 27/04/99 New unit format PPU016, you need to recompile all older units
  36. 01/05/99 Internal assembler. Assembler readers now support MMX,KNI
  37. instructions.
  38. 12/05/99 rtl/utils/ directory moved to utils/. Moved the utils only needed
  39. for compiler development to compiler/utils/
  40. 13/05/99 Classes are now only allowed in the ObjFpc or Delphi mode. Use
  41. {$mode objfpc} or {$mode delphi}. Or from commandline -S2 or -Sd
  42. 16/05/99 Remove options -Up (use now -Fu) and -Fg (use now -Fl)
  43. 17/05/99 Redesign of ansistring temporary handling, please report
  44. any problems
  45. 17/05/99 Most stuff of the objpas unit is now in the system unit
  46. because the new temporary ansistring handling support
  47. exceptions and exceptions need the class OOP model
  48. 18/05/99 The compiler will stop directly if there are errors in the
  49. commandline parameters
  50. 16/08/99 DLL are relocatable by default (need to strip symbols)
  51. -WN make non relocatable DLL (which can retain debug info)
  52. for both type of DLL the prefered image base can be specified
  53. with -WB1100000 for instance to get image base at $11000000.
  54. 08/09/99 pointer addition/substraction (only available in fpc,objfpc mode)
  55. now uses the size of the type the pointer points to, just like
  56. inc(),dec() already did. Now inc(p) is the same as p:=p+1.
  57. But old code can be broken by this when there is a p:=p+4 then
  58. it's now parsed like: p:=p+4*sizeof(type). To get the old situation
  59. you can use typecasting: p:=ptype(pointer(p)+4).
  60. 08/09/99 class/object field return their offsets in the object/class. You
  61. must access them self with loading the object/class pointer and
  62. then create a reference where you add the field
  63. 07/11/99 Small change to property writing in PPU => all units
  64. exporting classes with properties must be recompiled
  65. (no new unit format, so be careful) (FK)
  66. 08/11/99 PP variable in Makefiles changed to FPC
  67. 14/11/99 makefile.fpc is not available anymore. You must now use fpcmake
  68. which is available from the utils/. There is also an example
  69. Makefile.fpc
  70. 15/02/00 The support of the fixed data type has been removed from the
  71. compiler because
  72. 1. it is buggy
  73. 2. it is very seldom used
  74. 3. the single data type is faster on modern cpus (Pentium+)
  75. If still want to use it, you have to recompile the compiler
  76. with -dSUPPORT_FIXED and recompile the rtl with that compiler.
  77. To find out if the used compiler supports the fixed data
  78. type, check the directive HASFIXED (FK)
  79. 29/02/00 ORDERSOURCES released => PPU version change
  80. this allows for a more correct include file hunting order.
  81. 01/04/00 fix the handling of value parameters in cdecl function
  82. 11/05/00 changed vmt handling to fix problems some problems
  83. with overloading in objects
  84. 11/11/00 default parameter support
  85. 11/11/00 you can declare a pointer type with directive far; to make
  86. it a farpointer. Only usefull for dos.
  87. 11/11/00 ptr() returns a farpointer instead of pointer. Becuase the
  88. pointer result would be useless and only causing segmentation
  89. faults. With the farpointer this would already be detected at
  90. compiletime. To get the code working you can declare a pointer
  91. with far; like:
  92. type
  93. farlongint = ^longint;far;
  94. var
  95. timer : farlongint;
  96. begin
  97. timer:=ptr($40,$6c);
  98. writeln(timer^);
  99. end.
  100. 07/12/00 constant handling has been rewritten: hex constants <=$ffffffff
  101. are now always parsed as unsigned numbers (because of the int64
  102. constant support, the were always sign-extended before). This
  103. may force you to add longint typecasts round hex numbers in
  104. your programs to avoid range check errors.
  105. 10/04/01 Argument names are now checked if names are the same in the
  106. both the forward (interface) and implementation declaration
  107. 13/04/01 It's not possible anymore (except in -So mode) to pass a cardinal
  108. to a parameter declared with a "var longint". The same goes for
  109. the other signed-unsigned like smallint-word and shortint-byte.
  110. 13/04/01 in FPC mode you're now always forced to use @ to get the address
  111. of a procedure and load it in a procedure variable. Before it was
  112. sometimes a bit more relaxed
  113. 03/06/01 hint directives (library,platform,deprecated) are parsed, but
  114. futher ignored