psystem.pas 20 KB

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