2
0

psystem.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. Load the system unit, create required defs for systemunit
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit psystem;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. symbase;
  23. procedure insertinternsyms(p : tsymtable);
  24. procedure insert_intern_types(p : tsymtable);
  25. procedure readconstdefs;
  26. procedure createconstdefs;
  27. procedure registernodes;
  28. procedure registertais;
  29. implementation
  30. uses
  31. globals,globtype,
  32. symconst,symtype,symsym,symdef,symtable,
  33. aasmtai,aasmcpu,
  34. {$ifdef GDB}
  35. gdb,
  36. {$endif GDB}
  37. node,nbas,nflw,nset,ncon,ncnv,nld,nmem,ncal,nmat,nadd,ninl,nopt
  38. {$ifdef Delphi}
  39. ,dmisc
  40. ,sysutils
  41. {$endif}
  42. ;
  43. procedure insertinternsyms(p : tsymtable);
  44. {
  45. all intern procedures for the system unit
  46. }
  47. begin
  48. p.insert(tsyssym.create('Concat',in_concat_x));
  49. p.insert(tsyssym.create('Write',in_write_x));
  50. p.insert(tsyssym.create('WriteLn',in_writeln_x));
  51. p.insert(tsyssym.create('Assigned',in_assigned_x));
  52. p.insert(tsyssym.create('Read',in_read_x));
  53. p.insert(tsyssym.create('ReadLn',in_readln_x));
  54. p.insert(tsyssym.create('Ofs',in_ofs_x));
  55. p.insert(tsyssym.create('SizeOf',in_sizeof_x));
  56. p.insert(tsyssym.create('TypeOf',in_typeof_x));
  57. p.insert(tsyssym.create('Low',in_low_x));
  58. p.insert(tsyssym.create('High',in_high_x));
  59. p.insert(tsyssym.create('Seg',in_seg_x));
  60. p.insert(tsyssym.create('Ord',in_ord_x));
  61. p.insert(tsyssym.create('Pred',in_pred_x));
  62. p.insert(tsyssym.create('Succ',in_succ_x));
  63. p.insert(tsyssym.create('Exclude',in_exclude_x_y));
  64. p.insert(tsyssym.create('Include',in_include_x_y));
  65. p.insert(tsyssym.create('Break',in_break));
  66. p.insert(tsyssym.create('Exit',in_exit));
  67. p.insert(tsyssym.create('Continue',in_continue));
  68. p.insert(tsyssym.create('Dec',in_dec_x));
  69. p.insert(tsyssym.create('Inc',in_inc_x));
  70. p.insert(tsyssym.create('Str',in_str_x_string));
  71. p.insert(tsyssym.create('Assert',in_assert_x_y));
  72. p.insert(tsyssym.create('Val',in_val_x));
  73. p.insert(tsyssym.create('Addr',in_addr_x));
  74. p.insert(tsyssym.create('TypeInfo',in_typeinfo_x));
  75. p.insert(tsyssym.create('SetLength',in_setlength_x));
  76. p.insert(tsyssym.create('Copy',in_copy_x));
  77. p.insert(tsyssym.create('Finalize',in_finalize_x));
  78. p.insert(tsyssym.create('Length',in_length_x));
  79. p.insert(tsyssym.create('New',in_new_x));
  80. p.insert(tsyssym.create('Dispose',in_dispose_x));
  81. end;
  82. procedure insert_intern_types(p : tsymtable);
  83. {
  84. all the types inserted into the system unit
  85. }
  86. function addtype(const s:string;const t:ttype):ttypesym;
  87. begin
  88. result:=ttypesym.create(s,t);
  89. p.insert(result);
  90. { add init/final table if required }
  91. if t.def.needs_inittable then
  92. generate_inittable(result);
  93. end;
  94. procedure adddef(const s:string;def:tdef);
  95. var
  96. t : ttype;
  97. begin
  98. t.setdef(def);
  99. p.insert(ttypesym.create(s,t));
  100. end;
  101. var
  102. { several defs to simulate more or less C++ objects for GDB }
  103. vmttype,
  104. vmtarraytype : ttype;
  105. vmtsymtable : tsymtable;
  106. begin
  107. { Normal types }
  108. if (cs_fp_emulation in aktmoduleswitches) then
  109. begin
  110. addtype('Single',s32floattype);
  111. { extended size is the best real type for the target }
  112. addtype('Real',s32floattype);
  113. pbestrealtype:=@s32floattype;
  114. end
  115. else
  116. begin
  117. addtype('Single',s32floattype);
  118. addtype('Double',s64floattype);
  119. { extended size is the best real type for the target }
  120. addtype('Extended',pbestrealtype^);
  121. addtype('Real',s64floattype);
  122. end;
  123. {$ifdef x86}
  124. adddef('Comp',tfloatdef.create(s64comp));
  125. {$endif x86}
  126. addtype('Currency',s64currencytype);
  127. addtype('Pointer',voidpointertype);
  128. addtype('FarPointer',voidfarpointertype);
  129. addtype('ShortString',cshortstringtype);
  130. addtype('LongString',clongstringtype);
  131. addtype('AnsiString',cansistringtype);
  132. addtype('WideString',cwidestringtype);
  133. addtype('Boolean',booltype);
  134. addtype('ByteBool',booltype);
  135. adddef('WordBool',torddef.create(bool16bit,0,1));
  136. adddef('LongBool',torddef.create(bool32bit,0,1));
  137. addtype('Char',cchartype);
  138. addtype('WideChar',cwidechartype);
  139. adddef('Text',tfiledef.createtext);
  140. addtype('Longword',u32bittype);
  141. addtype('QWord',cu64bittype);
  142. addtype('Int64',cs64bittype);
  143. adddef('TypedFile',tfiledef.createtyped(voidtype));
  144. addtype('Variant',cvarianttype);
  145. { Internal types }
  146. addtype('$formal',cformaltype);
  147. addtype('$void',voidtype);
  148. addtype('$byte',u8bittype);
  149. addtype('$word',u16bittype);
  150. addtype('$ulong',u32bittype);
  151. addtype('$longint',s32bittype);
  152. addtype('$qword',cu64bittype);
  153. addtype('$int64',cs64bittype);
  154. addtype('$char',cchartype);
  155. addtype('$widechar',cwidechartype);
  156. addtype('$shortstring',cshortstringtype);
  157. addtype('$longstring',clongstringtype);
  158. addtype('$ansistring',cansistringtype);
  159. addtype('$widestring',cwidestringtype);
  160. addtype('$openshortstring',openshortstringtype);
  161. addtype('$boolean',booltype);
  162. addtype('$void_pointer',voidpointertype);
  163. addtype('$char_pointer',charpointertype);
  164. addtype('$void_farpointer',voidfarpointertype);
  165. addtype('$openchararray',openchararraytype);
  166. addtype('$file',cfiletype);
  167. addtype('$variant',cvarianttype);
  168. addtype('$s32real',s32floattype);
  169. addtype('$s64real',s64floattype);
  170. addtype('$s80real',s80floattype);
  171. addtype('$s64currency',s64currencytype);
  172. { Add a type for virtual method tables }
  173. vmtsymtable:=trecordsymtable.create;
  174. vmttype.setdef(trecorddef.create(vmtsymtable));
  175. pvmttype.setdef(tpointerdef.create(vmttype));
  176. vmtsymtable.insert(tvarsym.create('$parent',pvmttype));
  177. vmtsymtable.insert(tvarsym.create('$length',s32bittype));
  178. vmtsymtable.insert(tvarsym.create('$mlength',s32bittype));
  179. vmtarraytype.setdef(tarraydef.create(0,1,s32bittype));
  180. tarraydef(vmtarraytype.def).setelementtype(voidpointertype);
  181. vmtsymtable.insert(tvarsym.create('$__pfn',vmtarraytype));
  182. addtype('$__vtbl_ptr_type',vmttype);
  183. addtype('$pvmt',pvmttype);
  184. vmtarraytype.setdef(tarraydef.create(0,1,s32bittype));
  185. tarraydef(vmtarraytype.def).setelementtype(pvmttype);
  186. addtype('$vtblarray',vmtarraytype);
  187. { Add functions that require compiler magic }
  188. insertinternsyms(p);
  189. end;
  190. procedure readconstdefs;
  191. {
  192. Load all default definitions for consts from the system unit
  193. }
  194. begin
  195. globaldef('byte',u8bittype);
  196. globaldef('word',u16bittype);
  197. globaldef('ulong',u32bittype);
  198. globaldef('longint',s32bittype);
  199. globaldef('qword',cu64bittype);
  200. globaldef('int64',cs64bittype);
  201. globaldef('formal',cformaltype);
  202. globaldef('void',voidtype);
  203. globaldef('char',cchartype);
  204. globaldef('widechar',cwidechartype);
  205. globaldef('shortstring',cshortstringtype);
  206. globaldef('longstring',clongstringtype);
  207. globaldef('ansistring',cansistringtype);
  208. globaldef('widestring',cwidestringtype);
  209. globaldef('openshortstring',openshortstringtype);
  210. globaldef('openchararray',openchararraytype);
  211. globaldef('s32real',s32floattype);
  212. globaldef('s64real',s64floattype);
  213. globaldef('s80real',s80floattype);
  214. globaldef('s64currency',s64currencytype);
  215. globaldef('boolean',booltype);
  216. globaldef('void_pointer',voidpointertype);
  217. globaldef('char_pointer',charpointertype);
  218. globaldef('void_farpointer',voidfarpointertype);
  219. globaldef('file',cfiletype);
  220. globaldef('pvmt',pvmttype);
  221. globaldef('variant',cvarianttype);
  222. {$ifdef i386}
  223. ordpointertype:=u32bittype;
  224. {$endif i386}
  225. {$ifdef x86_64}
  226. ordpointertype:=cu64bittype;
  227. {$endif x86_64}
  228. {$ifdef powerpc}
  229. ordpointertype:=u32bittype;
  230. {$endif powerpc}
  231. {$ifdef sparc}
  232. ordpointertype:=u32bittype;
  233. {$endif sparc}
  234. {$ifdef m68k}
  235. ordpointertype:=u32bittype;
  236. {$endif}
  237. end;
  238. procedure createconstdefs;
  239. {
  240. Create all default definitions for consts for the system unit
  241. }
  242. var
  243. oldregisterdef : boolean;
  244. begin
  245. { create definitions for constants }
  246. oldregisterdef:=registerdef;
  247. registerdef:=false;
  248. cformaltype.setdef(tformaldef.create);
  249. voidtype.setdef(torddef.create(uvoid,0,0));
  250. u8bittype.setdef(torddef.create(u8bit,0,255));
  251. u16bittype.setdef(torddef.create(u16bit,0,65535));
  252. u32bittype.setdef(torddef.create(u32bit,0,high(longword)));
  253. s32bittype.setdef(torddef.create(s32bit,low(longint),high(longint)));
  254. cu64bittype.setdef(torddef.create(u64bit,low(qword),TConstExprInt(high(qword))));
  255. cs64bittype.setdef(torddef.create(s64bit,low(int64),high(int64)));
  256. booltype.setdef(torddef.create(bool8bit,0,1));
  257. cchartype.setdef(torddef.create(uchar,0,255));
  258. cwidechartype.setdef(torddef.create(uwidechar,0,65535));
  259. cshortstringtype.setdef(tstringdef.createshort(255));
  260. { should we give a length to the default long and ansi string definition ?? }
  261. clongstringtype.setdef(tstringdef.createlong(-1));
  262. cansistringtype.setdef(tstringdef.createansi(-1));
  263. cwidestringtype.setdef(tstringdef.createwide(-1));
  264. { length=0 for shortstring is open string (needed for readln(string) }
  265. openshortstringtype.setdef(tstringdef.createshort(0));
  266. openchararraytype.setdef(tarraydef.create(0,-1,s32bittype));
  267. tarraydef(openchararraytype.def).setelementtype(cchartype);
  268. {$ifdef x86}
  269. {$ifdef i386}
  270. ordpointertype:=u32bittype;
  271. {$endif i386}
  272. {$ifdef x86_64}
  273. ordpointertype:=cu64bittype;
  274. {$endif x86_64}
  275. s32floattype.setdef(tfloatdef.create(s32real));
  276. s64floattype.setdef(tfloatdef.create(s64real));
  277. s80floattype.setdef(tfloatdef.create(s80real));
  278. {$endif x86}
  279. {$ifdef powerpc}
  280. ordpointertype:=u32bittype;
  281. s32floattype.setdef(tfloatdef.create(s32real));
  282. s64floattype.setdef(tfloatdef.create(s64real));
  283. s80floattype.setdef(tfloatdef.create(s80real));
  284. {$endif powerpc}
  285. {$ifdef sparc}
  286. ordpointertype:=u32bittype;
  287. s32floattype.setdef(tfloatdef.create(s32real));
  288. s64floattype.setdef(tfloatdef.create(s64real));
  289. s80floattype.setdef(tfloatdef.create(s80real));
  290. {$endif sparc}
  291. {$ifdef m68k}
  292. ordpointertype:=u32bittype;
  293. s32floattype.setdef(tfloatdef.create(s32real));
  294. s64floattype.setdef(tfloatdef.create(s64real));
  295. s80floattype.setdef(tfloatdef.create(s80real));
  296. {$endif}
  297. s64currencytype.setdef(tfloatdef.create(s64currency));
  298. { some other definitions }
  299. voidpointertype.setdef(tpointerdef.create(voidtype));
  300. charpointertype.setdef(tpointerdef.create(cchartype));
  301. voidfarpointertype.setdef(tpointerdef.createfar(voidtype));
  302. cfiletype.setdef(tfiledef.createuntyped);
  303. cvarianttype.setdef(tvariantdef.create);
  304. registerdef:=oldregisterdef;
  305. end;
  306. procedure registernodes;
  307. {
  308. Register all possible nodes in the nodeclass array that
  309. will be used for loading the nodes from a ppu
  310. }
  311. begin
  312. nodeclass[addn]:=caddnode;
  313. nodeclass[muln]:=caddnode;
  314. nodeclass[subn]:=caddnode;
  315. nodeclass[divn]:=cmoddivnode;
  316. nodeclass[symdifn]:=caddnode;
  317. nodeclass[modn]:=cmoddivnode;
  318. nodeclass[assignn]:=cassignmentnode;
  319. nodeclass[loadn]:=cloadnode;
  320. nodeclass[rangen]:=crangenode;
  321. nodeclass[ltn]:=caddnode;
  322. nodeclass[lten]:=caddnode;
  323. nodeclass[gtn]:=caddnode;
  324. nodeclass[gten]:=caddnode;
  325. nodeclass[equaln]:=caddnode;
  326. nodeclass[unequaln]:=caddnode;
  327. nodeclass[inn]:=cinnode;
  328. nodeclass[orn]:=caddnode;
  329. nodeclass[xorn]:=caddnode;
  330. nodeclass[shrn]:=cshlshrnode;
  331. nodeclass[shln]:=cshlshrnode;
  332. nodeclass[slashn]:=caddnode;
  333. nodeclass[andn]:=caddnode;
  334. nodeclass[subscriptn]:=csubscriptnode;
  335. nodeclass[derefn]:=cderefnode;
  336. nodeclass[addrn]:=caddrnode;
  337. nodeclass[doubleaddrn]:=cdoubleaddrnode;
  338. nodeclass[ordconstn]:=cordconstnode;
  339. nodeclass[typeconvn]:=ctypeconvnode;
  340. nodeclass[calln]:=ccallnode;
  341. nodeclass[callparan]:=ccallparanode;
  342. nodeclass[realconstn]:=crealconstnode;
  343. nodeclass[unaryminusn]:=cunaryminusnode;
  344. nodeclass[asmn]:=casmnode;
  345. nodeclass[vecn]:=cvecnode;
  346. nodeclass[pointerconstn]:=cpointerconstnode;
  347. nodeclass[stringconstn]:=cstringconstnode;
  348. nodeclass[funcretn]:=cfuncretnode;
  349. nodeclass[selfn]:=cselfnode;
  350. nodeclass[notn]:=cnotnode;
  351. nodeclass[inlinen]:=cinlinenode;
  352. nodeclass[niln]:=cnilnode;
  353. nodeclass[errorn]:=cerrornode;
  354. nodeclass[typen]:=ctypenode;
  355. nodeclass[hnewn]:=chnewnode;
  356. nodeclass[hdisposen]:=chdisposenode;
  357. nodeclass[setelementn]:=csetelementnode;
  358. nodeclass[setconstn]:=csetconstnode;
  359. nodeclass[blockn]:=cblocknode;
  360. nodeclass[statementn]:=cstatementnode;
  361. nodeclass[ifn]:=cifnode;
  362. nodeclass[breakn]:=cbreaknode;
  363. nodeclass[continuen]:=ccontinuenode;
  364. nodeclass[whilerepeatn]:=cwhilerepeatnode;
  365. nodeclass[forn]:=cfornode;
  366. nodeclass[exitn]:=cexitnode;
  367. nodeclass[withn]:=cwithnode;
  368. nodeclass[casen]:=ccasenode;
  369. nodeclass[labeln]:=clabelnode;
  370. nodeclass[goton]:=cgotonode;
  371. nodeclass[tryexceptn]:=ctryexceptnode;
  372. nodeclass[raisen]:=craisenode;
  373. nodeclass[tryfinallyn]:=ctryfinallynode;
  374. nodeclass[onn]:=connode;
  375. nodeclass[isn]:=cisnode;
  376. nodeclass[asn]:=casnode;
  377. nodeclass[caretn]:=caddnode;
  378. nodeclass[failn]:=cfailnode;
  379. nodeclass[starstarn]:=caddnode;
  380. nodeclass[procinlinen]:=cprocinlinenode;
  381. nodeclass[arrayconstructorn]:=carrayconstructornode;
  382. nodeclass[arrayconstructorrangen]:=carrayconstructorrangenode;
  383. nodeclass[tempcreaten]:=ctempcreatenode;
  384. nodeclass[temprefn]:=ctemprefnode;
  385. nodeclass[tempdeleten]:=ctempdeletenode;
  386. nodeclass[addoptn]:=caddnode;
  387. nodeclass[nothingn]:=cnothingnode;
  388. nodeclass[loadvmtn]:=cloadvmtnode;
  389. nodeclass[guidconstn]:=cguidconstnode;
  390. nodeclass[rttin]:=crttinode;
  391. end;
  392. procedure registertais;
  393. {
  394. Register all possible tais in the taiclass array that
  395. will be used for loading the tais from a ppu
  396. }
  397. begin
  398. aiclass[ait_none]:=nil;
  399. aiclass[ait_align]:=tai_align;
  400. aiclass[ait_section]:=tai_section;
  401. aiclass[ait_comment]:=tai_comment;
  402. aiclass[ait_direct]:=tai_direct;
  403. aiclass[ait_string]:=tai_string;
  404. aiclass[ait_instruction]:=taicpu;
  405. aiclass[ait_datablock]:=tai_datablock;
  406. aiclass[ait_symbol]:=tai_symbol;
  407. aiclass[ait_symbol_end]:=tai_symbol_end;
  408. aiclass[ait_label]:=tai_label;
  409. aiclass[ait_const_32bit]:=tai_const;
  410. aiclass[ait_const_16bit]:=tai_const;
  411. aiclass[ait_const_8bit]:=tai_const;
  412. aiclass[ait_const_symbol]:=tai_const_symbol;
  413. aiclass[ait_const_rva]:=tai_const_symbol;
  414. aiclass[ait_real_32bit]:=tai_real_32bit;
  415. aiclass[ait_real_64bit]:=tai_real_64bit;
  416. aiclass[ait_real_80bit]:=tai_real_80bit;
  417. aiclass[ait_comp_64bit]:=tai_comp_64bit;
  418. {$ifdef GDB}
  419. aiclass[ait_stabn]:=tai_stabn;
  420. aiclass[ait_stabs]:=tai_stabs;
  421. aiclass[ait_force_line]:=tai_force_line;
  422. aiclass[ait_stab_function_name]:=tai_stab_function_name;
  423. {$endif GDB}
  424. {$ifdef alpha}
  425. { the follow is for the DEC Alpha }
  426. aiclass[ait_frame]:=tai_frame;
  427. aiclass[ait_ent]:=tai_ent;
  428. {$endif alpha}
  429. {$ifdef m68k}
  430. {$warning FIXME: tai_labeled_instruction doesn't exists}
  431. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  432. {$endif m68k}
  433. {$ifdef ia64}
  434. aiclass[ait_bundle]:=tai_bundle;
  435. aiclass[ait_stop]:=tai_stop;
  436. {$endif ia64}
  437. {$ifdef SPARC}
  438. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  439. {$endif SPARC}
  440. aiclass[ait_cut]:=tai_cut;
  441. aiclass[ait_regalloc]:=tai_regalloc;
  442. aiclass[ait_tempalloc]:=tai_tempalloc;
  443. aiclass[ait_marker]:=tai_marker;
  444. end;
  445. end.
  446. {
  447. $Log$
  448. Revision 1.42 2002-10-05 12:43:27 carl
  449. * fixes for Delphi 6 compilation
  450. (warning : Some features do not work under Delphi)
  451. Revision 1.41 2002/10/02 18:20:53 peter
  452. * Copy() is now internal syssym that calls compilerprocs
  453. Revision 1.40 2002/09/27 21:13:29 carl
  454. * low-highval always checked if limit ober 2GB is reached (to avoid overflow)
  455. Revision 1.39 2002/09/07 20:46:10 carl
  456. * cardinal -> longword
  457. Revision 1.38 2002/08/23 13:11:11 mazen
  458. fixed compilation problem related to tai_labeled_instruction
  459. Revision 1.37 2002/08/18 20:06:25 peter
  460. * inlining is now also allowed in interface
  461. * renamed write/load to ppuwrite/ppuload
  462. * tnode storing in ppu
  463. * nld,ncon,nbas are already updated for storing in ppu
  464. Revision 1.36 2002/08/15 19:10:35 peter
  465. * first things tai,tnode storing in ppu
  466. Revision 1.35 2002/08/14 19:14:39 carl
  467. + fpu emulation support (generic and untested)
  468. Revision 1.34 2002/08/13 18:01:52 carl
  469. * rename swatoperands to swapoperands
  470. + m68k first compilable version (still needs a lot of testing):
  471. assembler generator, system information , inline
  472. assembler reader.
  473. Revision 1.33 2002/08/11 15:28:00 florian
  474. + support of explicit type case <any ordinal type>->pointer
  475. (delphi mode only)
  476. Revision 1.32 2002/07/25 17:54:24 carl
  477. + Extended is now CPU dependant (equal to bestrealtype)
  478. Revision 1.30 2002/07/07 09:52:32 florian
  479. * powerpc target fixed, very simple units can be compiled
  480. * some basic stuff for better callparanode handling, far from being finished
  481. Revision 1.29 2002/07/06 20:18:47 carl
  482. + more SPARC patches from Mazen
  483. Revision 1.28 2002/07/04 20:43:02 florian
  484. * first x86-64 patches
  485. Revision 1.27 2002/07/01 16:23:54 peter
  486. * cg64 patch
  487. * basics for currency
  488. * asnode updates for class and interface (not finished)
  489. Revision 1.26 2002/05/18 13:34:16 peter
  490. * readded missing revisions
  491. Revision 1.25 2002/05/16 19:46:44 carl
  492. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  493. + try to fix temp allocation (still in ifdef)
  494. + generic constructor calls
  495. + start of tassembler / tmodulebase class cleanup
  496. Revision 1.23 2002/05/12 16:53:09 peter
  497. * moved entry and exitcode to ncgutil and cgobj
  498. * foreach gets extra argument for passing local data to the
  499. iterator function
  500. * -CR checks also class typecasts at runtime by changing them
  501. into as
  502. * fixed compiler to cycle with the -CR option
  503. * fixed stabs with elf writer, finally the global variables can
  504. be watched
  505. * removed a lot of routines from cga unit and replaced them by
  506. calls to cgobj
  507. * u32bit-s32bit updates for and,or,xor nodes. When one element is
  508. u32bit then the other is typecasted also to u32bit without giving
  509. a rangecheck warning/error.
  510. * fixed pascal calling method with reversing also the high tree in
  511. the parast, detected by tcalcst3 test
  512. Revision 1.22 2002/01/24 12:33:53 jonas
  513. * adapted ranges of native types to int64 (e.g. high cardinal is no
  514. longer longint($ffffffff), but just $fffffff in psystem)
  515. * small additional fix in 64bit rangecheck code generation for 32 bit
  516. processors
  517. * adaption of ranges required the matching talgorithm used for selecting
  518. which overloaded procedure to call to be adapted. It should now always
  519. select the closest match for ordinal parameters.
  520. + inttostr(qword) in sysstr.inc/sysstrh.inc
  521. + abs(int64), sqr(int64), sqr(qword) in systemh.inc/generic.inc (previous
  522. fixes were required to be able to add them)
  523. * is_in_limit() moved from ncal to types unit, should always be used
  524. instead of direct comparisons of low/high values of orddefs because
  525. qword is a special case
  526. }