psystem.pas 21 KB

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