psystem.pas 21 KB

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