psystem.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  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,verbose,
  32. symconst,symtype,symsym,symdef,symtable,
  33. aasmtai,aasmcpu,ncgutil,fmodule,
  34. {$ifdef GDB}
  35. gdb,
  36. {$endif GDB}
  37. node,nbas,nflw,nset,ncon,ncnv,nld,nmem,ncal,nmat,nadd,ninl,nopt
  38. ;
  39. procedure insertinternsyms(p : tsymtable);
  40. {
  41. all intern procedures for the system unit
  42. }
  43. begin
  44. p.insert(tsyssym.create('Concat',in_concat_x));
  45. p.insert(tsyssym.create('Write',in_write_x));
  46. p.insert(tsyssym.create('WriteLn',in_writeln_x));
  47. p.insert(tsyssym.create('Assigned',in_assigned_x));
  48. p.insert(tsyssym.create('Read',in_read_x));
  49. p.insert(tsyssym.create('ReadLn',in_readln_x));
  50. p.insert(tsyssym.create('Ofs',in_ofs_x));
  51. p.insert(tsyssym.create('SizeOf',in_sizeof_x));
  52. p.insert(tsyssym.create('TypeOf',in_typeof_x));
  53. p.insert(tsyssym.create('Low',in_low_x));
  54. p.insert(tsyssym.create('High',in_high_x));
  55. p.insert(tsyssym.create('Seg',in_seg_x));
  56. p.insert(tsyssym.create('Ord',in_ord_x));
  57. p.insert(tsyssym.create('Pred',in_pred_x));
  58. p.insert(tsyssym.create('Succ',in_succ_x));
  59. p.insert(tsyssym.create('Exclude',in_exclude_x_y));
  60. p.insert(tsyssym.create('Include',in_include_x_y));
  61. p.insert(tsyssym.create('Break',in_break));
  62. p.insert(tsyssym.create('Exit',in_exit));
  63. p.insert(tsyssym.create('Continue',in_continue));
  64. p.insert(tsyssym.create('Leave',in_leave)); {macpas only}
  65. p.insert(tsyssym.create('Cycle',in_cycle)); {macpas only}
  66. p.insert(tsyssym.create('Dec',in_dec_x));
  67. p.insert(tsyssym.create('Inc',in_inc_x));
  68. p.insert(tsyssym.create('Str',in_str_x_string));
  69. p.insert(tsyssym.create('Assert',in_assert_x_y));
  70. p.insert(tsyssym.create('Val',in_val_x));
  71. p.insert(tsyssym.create('Addr',in_addr_x));
  72. p.insert(tsyssym.create('TypeInfo',in_typeinfo_x));
  73. p.insert(tsyssym.create('SetLength',in_setlength_x));
  74. p.insert(tsyssym.create('Copy',in_copy_x));
  75. p.insert(tsyssym.create('Initialize',in_initialize_x));
  76. p.insert(tsyssym.create('Finalize',in_finalize_x));
  77. p.insert(tsyssym.create('Length',in_length_x));
  78. p.insert(tsyssym.create('New',in_new_x));
  79. p.insert(tsyssym.create('Dispose',in_dispose_x));
  80. end;
  81. procedure insert_intern_types(p : tsymtable);
  82. {
  83. all the types inserted into the system unit
  84. }
  85. function addtype(const s:string;const t:ttype):ttypesym;
  86. begin
  87. result:=ttypesym.create(s,t);
  88. p.insert(result);
  89. { add init/final table if required }
  90. if t.def.needs_inittable then
  91. generate_inittable(result);
  92. end;
  93. procedure adddef(const s:string;def:tdef);
  94. var
  95. t : ttype;
  96. begin
  97. t.setdef(def);
  98. p.insert(ttypesym.create(s,t));
  99. end;
  100. var
  101. hrecst : trecordsymtable;
  102. begin
  103. {$ifdef cpufpemu}
  104. { Normal types }
  105. if (cs_fp_emulation in aktmoduleswitches) then
  106. begin
  107. addtype('Single',s32floattype);
  108. { extended size is the best real type for the target }
  109. addtype('Real',s32floattype);
  110. pbestrealtype:=@s32floattype;
  111. { extended size is the best real type for the target }
  112. addtype('Extended',pbestrealtype^);
  113. end
  114. else
  115. {$endif cpufpemu}
  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. {$ifdef x86}
  129. addtype('FarPointer',voidfarpointertype);
  130. {$endif x86}
  131. addtype('ShortString',cshortstringtype);
  132. {$ifdef support_longstring}
  133. addtype('LongString',clongstringtype);
  134. {$endif support_longstring}
  135. {$ifdef ansistring_bits}
  136. addtype('AnsiString',cansistringtype16);
  137. addtype('AnsiString',cansistringtype32);
  138. addtype('AnsiString',cansistringtype64);
  139. {$else}
  140. addtype('AnsiString',cansistringtype);
  141. {$endif}
  142. addtype('WideString',cwidestringtype);
  143. addtype('Boolean',booltype);
  144. addtype('ByteBool',booltype);
  145. adddef('WordBool',torddef.create(bool16bit,0,1));
  146. adddef('LongBool',torddef.create(bool32bit,0,1));
  147. addtype('Byte',u8inttype);
  148. addtype('ShortInt',s8inttype);
  149. addtype('Word',u16inttype);
  150. addtype('SmallInt',s16inttype);
  151. addtype('LongWord',u32inttype);
  152. addtype('LongInt',s32inttype);
  153. addtype('QWord',u64inttype);
  154. addtype('Int64',s64inttype);
  155. addtype('Char',cchartype);
  156. addtype('WideChar',cwidechartype);
  157. adddef('Text',tfiledef.createtext);
  158. adddef('TypedFile',tfiledef.createtyped(voidtype));
  159. addtype('Variant',cvarianttype);
  160. addtype('OleVariant',colevarianttype);
  161. { Internal types }
  162. addtype('$formal',cformaltype);
  163. addtype('$void',voidtype);
  164. addtype('$byte',u8inttype);
  165. addtype('$shortint',s8inttype);
  166. addtype('$word',u16inttype);
  167. addtype('$smallint',s16inttype);
  168. addtype('$ulong',u32inttype);
  169. addtype('$longint',s32inttype);
  170. addtype('$qword',u64inttype);
  171. addtype('$int64',s64inttype);
  172. addtype('$char',cchartype);
  173. addtype('$widechar',cwidechartype);
  174. addtype('$shortstring',cshortstringtype);
  175. addtype('$longstring',clongstringtype);
  176. {$ifdef ansistring_bits}
  177. addtype('$ansistring16',cansistringtype16);
  178. addtype('$ansistring32',cansistringtype32);
  179. addtype('$ansistring64',cansistringtype64);
  180. {$else}
  181. addtype('$ansistring',cansistringtype);
  182. {$endif}
  183. addtype('$widestring',cwidestringtype);
  184. addtype('$openshortstring',openshortstringtype);
  185. addtype('$boolean',booltype);
  186. addtype('$void_pointer',voidpointertype);
  187. addtype('$char_pointer',charpointertype);
  188. addtype('$widechar_pointer',widecharpointertype);
  189. addtype('$void_farpointer',voidfarpointertype);
  190. addtype('$openchararray',openchararraytype);
  191. addtype('$file',cfiletype);
  192. addtype('$variant',cvarianttype);
  193. addtype('$olevariant',cvarianttype);
  194. addtype('$s32real',s32floattype);
  195. addtype('$s64real',s64floattype);
  196. addtype('$s80real',s80floattype);
  197. addtype('$s64currency',s64currencytype);
  198. { Add a type for virtual method tables }
  199. hrecst:=trecordsymtable.create(aktpackrecords);
  200. vmttype.setdef(trecorddef.create(hrecst));
  201. pvmttype.setdef(tpointerdef.create(vmttype));
  202. hrecst.insertfield(tfieldvarsym.create('$parent',vs_value,pvmttype,[]),true);
  203. hrecst.insertfield(tfieldvarsym.create('$length',vs_value,s32inttype,[]),true);
  204. hrecst.insertfield(tfieldvarsym.create('$mlength',vs_value,s32inttype,[]),true);
  205. vmtarraytype.setdef(tarraydef.create(0,1,s32inttype));
  206. tarraydef(vmtarraytype.def).setelementtype(voidpointertype);
  207. hrecst.insertfield(tfieldvarsym.create('$__pfn',vs_value,vmtarraytype,[]),true);
  208. addtype('$__vtbl_ptr_type',vmttype);
  209. addtype('$pvmt',pvmttype);
  210. vmtarraytype.setdef(tarraydef.create(0,1,s32inttype));
  211. tarraydef(vmtarraytype.def).setelementtype(pvmttype);
  212. addtype('$vtblarray',vmtarraytype);
  213. { Add a type for methodpointers }
  214. hrecst:=trecordsymtable.create(1);
  215. hrecst.insertfield(tfieldvarsym.create('$proc',vs_value,voidpointertype,[]),true);
  216. hrecst.insertfield(tfieldvarsym.create('$self',vs_value,voidpointertype,[]),true);
  217. methodpointertype.setdef(trecorddef.create(hrecst));
  218. addtype('$methodpointer',methodpointertype);
  219. { Add functions that require compiler magic }
  220. insertinternsyms(p);
  221. end;
  222. procedure readconstdefs;
  223. {
  224. Load all default definitions for consts from the system unit
  225. }
  226. procedure loadtype(const s:string;var t:ttype);
  227. var
  228. srsym : tsym;
  229. begin
  230. srsym:=searchsymonlyin(systemunit,s);
  231. if not(assigned(srsym) and
  232. (srsym.typ=typesym)) then
  233. internalerror(200403231);
  234. t:=ttypesym(srsym).restype;
  235. end;
  236. var
  237. oldcurrentmodule : tmodule;
  238. begin
  239. oldcurrentmodule:=current_module;
  240. current_module:=nil;
  241. loadtype('byte',u8inttype);
  242. loadtype('shortint',s8inttype);
  243. loadtype('word',u16inttype);
  244. loadtype('smallint',s16inttype);
  245. loadtype('ulong',u32inttype);
  246. loadtype('longint',s32inttype);
  247. loadtype('qword',u64inttype);
  248. loadtype('int64',s64inttype);
  249. loadtype('formal',cformaltype);
  250. loadtype('void',voidtype);
  251. loadtype('char',cchartype);
  252. loadtype('widechar',cwidechartype);
  253. loadtype('shortstring',cshortstringtype);
  254. loadtype('longstring',clongstringtype);
  255. {$ifdef ansistring_bits}
  256. loadtype('ansistring16',cansistringtype16);
  257. loadtype('ansistring32',cansistringtype32);
  258. loadtype('ansistring64',cansistringtype64);
  259. {$else}
  260. loadtype('ansistring',cansistringtype);
  261. {$endif}
  262. loadtype('widestring',cwidestringtype);
  263. loadtype('openshortstring',openshortstringtype);
  264. loadtype('openchararray',openchararraytype);
  265. loadtype('s32real',s32floattype);
  266. loadtype('s64real',s64floattype);
  267. loadtype('s80real',s80floattype);
  268. loadtype('s64currency',s64currencytype);
  269. loadtype('boolean',booltype);
  270. loadtype('void_pointer',voidpointertype);
  271. loadtype('char_pointer',charpointertype);
  272. loadtype('widechar_pointer',widecharpointertype);
  273. loadtype('void_farpointer',voidfarpointertype);
  274. loadtype('file',cfiletype);
  275. loadtype('pvmt',pvmttype);
  276. loadtype('vtblarray',vmtarraytype);
  277. loadtype('__vtbl_ptr_type',vmttype);
  278. loadtype('variant',cvarianttype);
  279. loadtype('olevariant',colevarianttype);
  280. loadtype('methodpointer',methodpointertype);
  281. {$ifdef cpu64bit}
  282. uinttype:=u64inttype;
  283. sinttype:=s64inttype;
  284. ptrinttype:=u64inttype;
  285. {$else cpu64bit}
  286. uinttype:=u32inttype;
  287. sinttype:=s32inttype;
  288. ptrinttype:=u32inttype;
  289. {$endif cpu64bit}
  290. current_module:=oldcurrentmodule;
  291. end;
  292. procedure createconstdefs;
  293. {
  294. Create all default definitions for consts for the system unit
  295. }
  296. var
  297. oldregisterdef : boolean;
  298. begin
  299. { create definitions for constants }
  300. oldregisterdef:=registerdef;
  301. registerdef:=false;
  302. cformaltype.setdef(tformaldef.create);
  303. voidtype.setdef(torddef.create(uvoid,0,0));
  304. u8inttype.setdef(torddef.create(u8bit,0,255));
  305. s8inttype.setdef(torddef.create(s8bit,-128,127));
  306. u16inttype.setdef(torddef.create(u16bit,0,65535));
  307. s16inttype.setdef(torddef.create(s16bit,-32768,32767));
  308. u32inttype.setdef(torddef.create(u32bit,0,high(longword)));
  309. s32inttype.setdef(torddef.create(s32bit,low(longint),high(longint)));
  310. u64inttype.setdef(torddef.create(u64bit,low(qword),TConstExprInt(high(qword))));
  311. s64inttype.setdef(torddef.create(s64bit,low(int64),high(int64)));
  312. booltype.setdef(torddef.create(bool8bit,0,1));
  313. cchartype.setdef(torddef.create(uchar,0,255));
  314. cwidechartype.setdef(torddef.create(uwidechar,0,65535));
  315. cshortstringtype.setdef(tstringdef.createshort(255));
  316. { should we give a length to the default long and ansi string definition ?? }
  317. clongstringtype.setdef(tstringdef.createlong(-1));
  318. {$ifdef ansistring_bits}
  319. cansistringtype16.setdef(tstringdef.createansi(-1,sb_16));
  320. cansistringtype32.setdef(tstringdef.createansi(-1,sb_32));
  321. cansistringtype64.setdef(tstringdef.createansi(-1,sb_64));
  322. {$else}
  323. cansistringtype.setdef(tstringdef.createansi(-1));
  324. {$endif}
  325. cwidestringtype.setdef(tstringdef.createwide(-1));
  326. { length=0 for shortstring is open string (needed for readln(string) }
  327. openshortstringtype.setdef(tstringdef.createshort(0));
  328. openchararraytype.setdef(tarraydef.create(0,-1,s32inttype));
  329. tarraydef(openchararraytype.def).setelementtype(cchartype);
  330. {$ifdef x86}
  331. s32floattype.setdef(tfloatdef.create(s32real));
  332. s64floattype.setdef(tfloatdef.create(s64real));
  333. s80floattype.setdef(tfloatdef.create(s80real));
  334. s64currencytype.setdef(tfloatdef.create(s64currency));
  335. {$endif x86}
  336. {$ifdef powerpc}
  337. s32floattype.setdef(tfloatdef.create(s32real));
  338. s64floattype.setdef(tfloatdef.create(s64real));
  339. s80floattype.setdef(tfloatdef.create(s80real));
  340. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  341. {$endif powerpc}
  342. {$ifdef sparc}
  343. s32floattype.setdef(tfloatdef.create(s32real));
  344. s64floattype.setdef(tfloatdef.create(s64real));
  345. s80floattype.setdef(tfloatdef.create(s80real));
  346. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  347. {$endif sparc}
  348. {$ifdef m68k}
  349. s32floattype.setdef(tfloatdef.create(s32real));
  350. s64floattype.setdef(tfloatdef.create(s64real));
  351. s80floattype.setdef(tfloatdef.create(s80real));
  352. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  353. {$endif}
  354. {$ifdef arm}
  355. s32floattype.setdef(tfloatdef.create(s32real));
  356. s64floattype.setdef(tfloatdef.create(s64real));
  357. s80floattype.setdef(tfloatdef.create(s80real));
  358. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  359. {$endif arm}
  360. {$ifdef cpu64bit}
  361. uinttype:=u64inttype;
  362. sinttype:=s64inttype;
  363. ptrinttype:=u64inttype;
  364. {$else cpu64bit}
  365. uinttype:=u32inttype;
  366. sinttype:=s32inttype;
  367. ptrinttype:=u32inttype;
  368. {$endif cpu64bit}
  369. { some other definitions }
  370. voidpointertype.setdef(tpointerdef.create(voidtype));
  371. charpointertype.setdef(tpointerdef.create(cchartype));
  372. widecharpointertype.setdef(tpointerdef.create(cwidechartype));
  373. voidfarpointertype.setdef(tpointerdef.createfar(voidtype));
  374. cfiletype.setdef(tfiledef.createuntyped);
  375. cvarianttype.setdef(tvariantdef.create(vt_normalvariant));
  376. colevarianttype.setdef(tvariantdef.create(vt_olevariant));
  377. registerdef:=oldregisterdef;
  378. end;
  379. procedure registernodes;
  380. {
  381. Register all possible nodes in the nodeclass array that
  382. will be used for loading the nodes from a ppu
  383. }
  384. begin
  385. nodeclass[addn]:=caddnode;
  386. nodeclass[muln]:=caddnode;
  387. nodeclass[subn]:=caddnode;
  388. nodeclass[divn]:=cmoddivnode;
  389. nodeclass[symdifn]:=caddnode;
  390. nodeclass[modn]:=cmoddivnode;
  391. nodeclass[assignn]:=cassignmentnode;
  392. nodeclass[loadn]:=cloadnode;
  393. nodeclass[rangen]:=crangenode;
  394. nodeclass[ltn]:=caddnode;
  395. nodeclass[lten]:=caddnode;
  396. nodeclass[gtn]:=caddnode;
  397. nodeclass[gten]:=caddnode;
  398. nodeclass[equaln]:=caddnode;
  399. nodeclass[unequaln]:=caddnode;
  400. nodeclass[inn]:=cinnode;
  401. nodeclass[orn]:=caddnode;
  402. nodeclass[xorn]:=caddnode;
  403. nodeclass[shrn]:=cshlshrnode;
  404. nodeclass[shln]:=cshlshrnode;
  405. nodeclass[slashn]:=caddnode;
  406. nodeclass[andn]:=caddnode;
  407. nodeclass[subscriptn]:=csubscriptnode;
  408. nodeclass[derefn]:=cderefnode;
  409. nodeclass[addrn]:=caddrnode;
  410. nodeclass[ordconstn]:=cordconstnode;
  411. nodeclass[typeconvn]:=ctypeconvnode;
  412. nodeclass[calln]:=ccallnode;
  413. nodeclass[callparan]:=ccallparanode;
  414. nodeclass[realconstn]:=crealconstnode;
  415. nodeclass[unaryminusn]:=cunaryminusnode;
  416. nodeclass[asmn]:=casmnode;
  417. nodeclass[vecn]:=cvecnode;
  418. nodeclass[pointerconstn]:=cpointerconstnode;
  419. nodeclass[stringconstn]:=cstringconstnode;
  420. nodeclass[notn]:=cnotnode;
  421. nodeclass[inlinen]:=cinlinenode;
  422. nodeclass[niln]:=cnilnode;
  423. nodeclass[errorn]:=cerrornode;
  424. nodeclass[typen]:=ctypenode;
  425. nodeclass[setelementn]:=csetelementnode;
  426. nodeclass[setconstn]:=csetconstnode;
  427. nodeclass[blockn]:=cblocknode;
  428. nodeclass[statementn]:=cstatementnode;
  429. nodeclass[ifn]:=cifnode;
  430. nodeclass[breakn]:=cbreaknode;
  431. nodeclass[continuen]:=ccontinuenode;
  432. nodeclass[whilerepeatn]:=cwhilerepeatnode;
  433. nodeclass[forn]:=cfornode;
  434. nodeclass[exitn]:=cexitnode;
  435. nodeclass[withn]:=cwithnode;
  436. nodeclass[casen]:=ccasenode;
  437. nodeclass[labeln]:=clabelnode;
  438. nodeclass[goton]:=cgotonode;
  439. nodeclass[tryexceptn]:=ctryexceptnode;
  440. nodeclass[raisen]:=craisenode;
  441. nodeclass[tryfinallyn]:=ctryfinallynode;
  442. nodeclass[onn]:=connode;
  443. nodeclass[isn]:=cisnode;
  444. nodeclass[asn]:=casnode;
  445. nodeclass[caretn]:=caddnode;
  446. nodeclass[starstarn]:=caddnode;
  447. nodeclass[arrayconstructorn]:=carrayconstructornode;
  448. nodeclass[arrayconstructorrangen]:=carrayconstructorrangenode;
  449. nodeclass[tempcreaten]:=ctempcreatenode;
  450. nodeclass[temprefn]:=ctemprefnode;
  451. nodeclass[tempdeleten]:=ctempdeletenode;
  452. nodeclass[addoptn]:=caddnode;
  453. nodeclass[nothingn]:=cnothingnode;
  454. nodeclass[loadvmtaddrn]:=cloadvmtaddrnode;
  455. nodeclass[guidconstn]:=cguidconstnode;
  456. nodeclass[rttin]:=crttinode;
  457. nodeclass[loadparentfpn]:=cloadparentfpnode;
  458. end;
  459. procedure registertais;
  460. {
  461. Register all possible tais in the taiclass array that
  462. will be used for loading the tais from a ppu
  463. }
  464. begin
  465. aiclass[ait_none]:=nil;
  466. aiclass[ait_align]:=tai_align;
  467. aiclass[ait_section]:=tai_section;
  468. aiclass[ait_comment]:=tai_comment;
  469. aiclass[ait_direct]:=tai_direct;
  470. aiclass[ait_string]:=tai_string;
  471. aiclass[ait_instruction]:=taicpu;
  472. aiclass[ait_datablock]:=tai_datablock;
  473. aiclass[ait_symbol]:=tai_symbol;
  474. aiclass[ait_symbol_end]:=tai_symbol_end;
  475. aiclass[ait_label]:=tai_label;
  476. aiclass[ait_const_64bit]:=tai_const;
  477. aiclass[ait_const_32bit]:=tai_const;
  478. aiclass[ait_const_16bit]:=tai_const;
  479. aiclass[ait_const_8bit]:=tai_const;
  480. aiclass[ait_const_indirect_symbol]:=tai_const;
  481. aiclass[ait_const_rva_symbol]:=tai_const;
  482. aiclass[ait_real_32bit]:=tai_real_32bit;
  483. aiclass[ait_real_64bit]:=tai_real_64bit;
  484. aiclass[ait_real_80bit]:=tai_real_80bit;
  485. aiclass[ait_comp_64bit]:=tai_comp_64bit;
  486. {$ifdef GDB}
  487. aiclass[ait_stabn]:=tai_stabn;
  488. aiclass[ait_stabs]:=tai_stabs;
  489. aiclass[ait_force_line]:=tai_force_line;
  490. aiclass[ait_stab_function_name]:=tai_stab_function_name;
  491. {$endif GDB}
  492. {$ifdef alpha}
  493. { the follow is for the DEC Alpha }
  494. aiclass[ait_frame]:=tai_frame;
  495. aiclass[ait_ent]:=tai_ent;
  496. {$endif alpha}
  497. {$ifdef m68k}
  498. {$warning FIXME: tai_labeled_instruction doesn't exists}
  499. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  500. {$endif m68k}
  501. {$ifdef ia64}
  502. aiclass[ait_bundle]:=tai_bundle;
  503. aiclass[ait_stop]:=tai_stop;
  504. {$endif ia64}
  505. {$ifdef SPARC}
  506. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  507. {$endif SPARC}
  508. aiclass[ait_cutobject]:=tai_cutobject;
  509. aiclass[ait_regalloc]:=tai_regalloc;
  510. aiclass[ait_tempalloc]:=tai_tempalloc;
  511. aiclass[ait_marker]:=tai_marker;
  512. end;
  513. end.
  514. {
  515. $Log$
  516. Revision 1.78 2005-02-14 17:13:07 peter
  517. * truncate log
  518. Revision 1.77 2005/02/04 16:30:40 peter
  519. * disable longstring
  520. Revision 1.76 2005/01/19 22:19:41 peter
  521. * unit mapping rewrite
  522. * new derefmap added
  523. }