psystem.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  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,
  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('Initialize',in_initialize_x));
  78. p.insert(tsyssym.create('Finalize',in_finalize_x));
  79. p.insert(tsyssym.create('Length',in_length_x));
  80. p.insert(tsyssym.create('New',in_new_x));
  81. p.insert(tsyssym.create('Dispose',in_dispose_x));
  82. end;
  83. procedure insert_intern_types(p : tsymtable);
  84. {
  85. all the types inserted into the system unit
  86. }
  87. function addtype(const s:string;const t:ttype):ttypesym;
  88. begin
  89. result:=ttypesym.create(s,t);
  90. p.insert(result);
  91. { add init/final table if required }
  92. if t.def.needs_inittable then
  93. generate_inittable(result);
  94. end;
  95. procedure adddef(const s:string;def:tdef);
  96. var
  97. t : ttype;
  98. begin
  99. t.setdef(def);
  100. p.insert(ttypesym.create(s,t));
  101. end;
  102. var
  103. hrecst : trecordsymtable;
  104. begin
  105. {$ifdef cpufpemu}
  106. { Normal types }
  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. {$endif cpufpemu}
  118. begin
  119. addtype('Single',s32floattype);
  120. addtype('Double',s64floattype);
  121. { extended size is the best real type for the target }
  122. addtype('Extended',pbestrealtype^);
  123. addtype('Real',s64floattype);
  124. end;
  125. {$ifdef x86}
  126. adddef('Comp',tfloatdef.create(s64comp));
  127. {$endif x86}
  128. addtype('Currency',s64currencytype);
  129. addtype('Pointer',voidpointertype);
  130. addtype('FarPointer',voidfarpointertype);
  131. addtype('ShortString',cshortstringtype);
  132. addtype('LongString',clongstringtype);
  133. {$ifdef ansistring_bits}
  134. addtype('AnsiString',cansistringtype16);
  135. addtype('AnsiString',cansistringtype32);
  136. addtype('AnsiString',cansistringtype64);
  137. {$else}
  138. addtype('AnsiString',cansistringtype);
  139. {$endif}
  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('$formal',cformaltype);
  161. addtype('$void',voidtype);
  162. addtype('$byte',u8inttype);
  163. addtype('$shortint',s8inttype);
  164. addtype('$word',u16inttype);
  165. addtype('$smallint',s16inttype);
  166. addtype('$ulong',u32inttype);
  167. addtype('$longint',s32inttype);
  168. addtype('$qword',u64inttype);
  169. addtype('$int64',s64inttype);
  170. addtype('$char',cchartype);
  171. addtype('$widechar',cwidechartype);
  172. addtype('$shortstring',cshortstringtype);
  173. addtype('$longstring',clongstringtype);
  174. {$ifdef ansistring_bits}
  175. addtype('$ansistring16',cansistringtype16);
  176. addtype('$ansistring32',cansistringtype32);
  177. addtype('$ansistring64',cansistringtype64);
  178. {$else}
  179. addtype('$ansistring',cansistringtype);
  180. {$endif}
  181. addtype('$widestring',cwidestringtype);
  182. addtype('$openshortstring',openshortstringtype);
  183. addtype('$boolean',booltype);
  184. addtype('$void_pointer',voidpointertype);
  185. addtype('$char_pointer',charpointertype);
  186. addtype('$void_farpointer',voidfarpointertype);
  187. addtype('$openchararray',openchararraytype);
  188. addtype('$file',cfiletype);
  189. addtype('$variant',cvarianttype);
  190. addtype('$olevariant',cvarianttype);
  191. addtype('$s32real',s32floattype);
  192. addtype('$s64real',s64floattype);
  193. addtype('$s80real',s80floattype);
  194. addtype('$s64currency',s64currencytype);
  195. { Add a type for virtual method tables }
  196. hrecst:=trecordsymtable.create(aktpackrecords);
  197. vmttype.setdef(trecorddef.create(hrecst));
  198. pvmttype.setdef(tpointerdef.create(vmttype));
  199. hrecst.insertfield(tvarsym.create('$parent',vs_value,pvmttype),true);
  200. hrecst.insertfield(tvarsym.create('$length',vs_value,s32inttype),true);
  201. hrecst.insertfield(tvarsym.create('$mlength',vs_value,s32inttype),true);
  202. vmtarraytype.setdef(tarraydef.create(0,1,s32inttype));
  203. tarraydef(vmtarraytype.def).setelementtype(voidpointertype);
  204. hrecst.insertfield(tvarsym.create('$__pfn',vs_value,vmtarraytype),true);
  205. addtype('$__vtbl_ptr_type',vmttype);
  206. addtype('$pvmt',pvmttype);
  207. vmtarraytype.setdef(tarraydef.create(0,1,s32inttype));
  208. tarraydef(vmtarraytype.def).setelementtype(pvmttype);
  209. addtype('$vtblarray',vmtarraytype);
  210. { Add a type for methodpointers }
  211. hrecst:=trecordsymtable.create(1);
  212. hrecst.insertfield(tvarsym.create('$proc',vs_value,voidpointertype),true);
  213. hrecst.insertfield(tvarsym.create('$self',vs_value,voidpointertype),true);
  214. methodpointertype.setdef(trecorddef.create(hrecst));
  215. addtype('$methodpointer',methodpointertype);
  216. { Add functions that require compiler magic }
  217. insertinternsyms(p);
  218. end;
  219. procedure readconstdefs;
  220. {
  221. Load all default definitions for consts from the system unit
  222. }
  223. procedure loadtype(const s:string;var t:ttype);
  224. var
  225. srsym : tsym;
  226. begin
  227. srsym:=searchsymonlyin(systemunit,s);
  228. if not(assigned(srsym) and
  229. (srsym.typ=typesym)) then
  230. internalerror(200403231);
  231. t:=ttypesym(srsym).restype;
  232. end;
  233. begin
  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('formal',cformaltype);
  243. loadtype('void',voidtype);
  244. loadtype('char',cchartype);
  245. loadtype('widechar',cwidechartype);
  246. loadtype('shortstring',cshortstringtype);
  247. loadtype('longstring',clongstringtype);
  248. {$ifdef ansistring_bits}
  249. loadtype('ansistring16',cansistringtype16);
  250. loadtype('ansistring32',cansistringtype32);
  251. loadtype('ansistring64',cansistringtype64);
  252. {$else}
  253. loadtype('ansistring',cansistringtype);
  254. {$endif}
  255. loadtype('widestring',cwidestringtype);
  256. loadtype('openshortstring',openshortstringtype);
  257. loadtype('openchararray',openchararraytype);
  258. loadtype('s32real',s32floattype);
  259. loadtype('s64real',s64floattype);
  260. loadtype('s80real',s80floattype);
  261. loadtype('s64currency',s64currencytype);
  262. loadtype('boolean',booltype);
  263. loadtype('void_pointer',voidpointertype);
  264. loadtype('char_pointer',charpointertype);
  265. loadtype('void_farpointer',voidfarpointertype);
  266. loadtype('file',cfiletype);
  267. loadtype('pvmt',pvmttype);
  268. loadtype('vtblarray',vmtarraytype);
  269. loadtype('__vtbl_ptr_type',vmttype);
  270. loadtype('variant',cvarianttype);
  271. loadtype('olevariant',colevarianttype);
  272. loadtype('methodpointer',methodpointertype);
  273. {$ifdef cpu64bit}
  274. uinttype:=u64inttype;
  275. sinttype:=s64inttype;
  276. ptrinttype:=u64inttype;
  277. {$else cpu64bit}
  278. uinttype:=u32inttype;
  279. sinttype:=s32inttype;
  280. ptrinttype:=u32inttype;
  281. {$endif cpu64bit}
  282. end;
  283. procedure createconstdefs;
  284. {
  285. Create all default definitions for consts for the system unit
  286. }
  287. var
  288. oldregisterdef : boolean;
  289. begin
  290. { create definitions for constants }
  291. oldregisterdef:=registerdef;
  292. registerdef:=false;
  293. cformaltype.setdef(tformaldef.create);
  294. voidtype.setdef(torddef.create(uvoid,0,0));
  295. u8inttype.setdef(torddef.create(u8bit,0,255));
  296. s8inttype.setdef(torddef.create(s8bit,-128,127));
  297. u16inttype.setdef(torddef.create(u16bit,0,65535));
  298. s16inttype.setdef(torddef.create(s16bit,-32768,32767));
  299. u32inttype.setdef(torddef.create(u32bit,0,high(longword)));
  300. s32inttype.setdef(torddef.create(s32bit,low(longint),high(longint)));
  301. u64inttype.setdef(torddef.create(u64bit,low(qword),TConstExprInt(high(qword))));
  302. s64inttype.setdef(torddef.create(s64bit,low(int64),high(int64)));
  303. booltype.setdef(torddef.create(bool8bit,0,1));
  304. cchartype.setdef(torddef.create(uchar,0,255));
  305. cwidechartype.setdef(torddef.create(uwidechar,0,65535));
  306. cshortstringtype.setdef(tstringdef.createshort(255));
  307. { should we give a length to the default long and ansi string definition ?? }
  308. clongstringtype.setdef(tstringdef.createlong(-1));
  309. {$ifdef ansistring_bits}
  310. cansistringtype16.setdef(tstringdef.createansi(-1,sb_16));
  311. cansistringtype32.setdef(tstringdef.createansi(-1,sb_32));
  312. cansistringtype64.setdef(tstringdef.createansi(-1,sb_64));
  313. {$else}
  314. cansistringtype.setdef(tstringdef.createansi(-1));
  315. {$endif}
  316. cwidestringtype.setdef(tstringdef.createwide(-1));
  317. { length=0 for shortstring is open string (needed for readln(string) }
  318. openshortstringtype.setdef(tstringdef.createshort(0));
  319. openchararraytype.setdef(tarraydef.create(0,-1,s32inttype));
  320. tarraydef(openchararraytype.def).setelementtype(cchartype);
  321. {$ifdef x86}
  322. s32floattype.setdef(tfloatdef.create(s32real));
  323. s64floattype.setdef(tfloatdef.create(s64real));
  324. s80floattype.setdef(tfloatdef.create(s80real));
  325. s64currencytype.setdef(tfloatdef.create(s64currency));
  326. {$endif x86}
  327. {$ifdef powerpc}
  328. s32floattype.setdef(tfloatdef.create(s32real));
  329. s64floattype.setdef(tfloatdef.create(s64real));
  330. s80floattype.setdef(tfloatdef.create(s80real));
  331. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  332. {$endif powerpc}
  333. {$ifdef sparc}
  334. s32floattype.setdef(tfloatdef.create(s32real));
  335. s64floattype.setdef(tfloatdef.create(s64real));
  336. s80floattype.setdef(tfloatdef.create(s80real));
  337. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  338. {$endif sparc}
  339. {$ifdef m68k}
  340. s32floattype.setdef(tfloatdef.create(s32real));
  341. s64floattype.setdef(tfloatdef.create(s64real));
  342. s80floattype.setdef(tfloatdef.create(s80real));
  343. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  344. {$endif}
  345. {$ifdef arm}
  346. s32floattype.setdef(tfloatdef.create(s32real));
  347. s64floattype.setdef(tfloatdef.create(s64real));
  348. s80floattype.setdef(tfloatdef.create(s80real));
  349. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  350. {$endif arm}
  351. {$ifdef cpu64bit}
  352. uinttype:=u64inttype;
  353. sinttype:=s64inttype;
  354. ptrinttype:=u64inttype;
  355. {$else cpu64bit}
  356. uinttype:=u32inttype;
  357. sinttype:=s32inttype;
  358. ptrinttype:=u32inttype;
  359. {$endif cpu64bit}
  360. { some other definitions }
  361. voidpointertype.setdef(tpointerdef.create(voidtype));
  362. charpointertype.setdef(tpointerdef.create(cchartype));
  363. voidfarpointertype.setdef(tpointerdef.createfar(voidtype));
  364. cfiletype.setdef(tfiledef.createuntyped);
  365. cvarianttype.setdef(tvariantdef.create(vt_normalvariant));
  366. colevarianttype.setdef(tvariantdef.create(vt_olevariant));
  367. registerdef:=oldregisterdef;
  368. end;
  369. procedure registernodes;
  370. {
  371. Register all possible nodes in the nodeclass array that
  372. will be used for loading the nodes from a ppu
  373. }
  374. begin
  375. nodeclass[addn]:=caddnode;
  376. nodeclass[muln]:=caddnode;
  377. nodeclass[subn]:=caddnode;
  378. nodeclass[divn]:=cmoddivnode;
  379. nodeclass[symdifn]:=caddnode;
  380. nodeclass[modn]:=cmoddivnode;
  381. nodeclass[assignn]:=cassignmentnode;
  382. nodeclass[loadn]:=cloadnode;
  383. nodeclass[rangen]:=crangenode;
  384. nodeclass[ltn]:=caddnode;
  385. nodeclass[lten]:=caddnode;
  386. nodeclass[gtn]:=caddnode;
  387. nodeclass[gten]:=caddnode;
  388. nodeclass[equaln]:=caddnode;
  389. nodeclass[unequaln]:=caddnode;
  390. nodeclass[inn]:=cinnode;
  391. nodeclass[orn]:=caddnode;
  392. nodeclass[xorn]:=caddnode;
  393. nodeclass[shrn]:=cshlshrnode;
  394. nodeclass[shln]:=cshlshrnode;
  395. nodeclass[slashn]:=caddnode;
  396. nodeclass[andn]:=caddnode;
  397. nodeclass[subscriptn]:=csubscriptnode;
  398. nodeclass[derefn]:=cderefnode;
  399. nodeclass[addrn]:=caddrnode;
  400. nodeclass[ordconstn]:=cordconstnode;
  401. nodeclass[typeconvn]:=ctypeconvnode;
  402. nodeclass[calln]:=ccallnode;
  403. nodeclass[callparan]:=ccallparanode;
  404. nodeclass[realconstn]:=crealconstnode;
  405. nodeclass[unaryminusn]:=cunaryminusnode;
  406. nodeclass[asmn]:=casmnode;
  407. nodeclass[vecn]:=cvecnode;
  408. nodeclass[pointerconstn]:=cpointerconstnode;
  409. nodeclass[stringconstn]:=cstringconstnode;
  410. nodeclass[notn]:=cnotnode;
  411. nodeclass[inlinen]:=cinlinenode;
  412. nodeclass[niln]:=cnilnode;
  413. nodeclass[errorn]:=cerrornode;
  414. nodeclass[typen]:=ctypenode;
  415. nodeclass[setelementn]:=csetelementnode;
  416. nodeclass[setconstn]:=csetconstnode;
  417. nodeclass[blockn]:=cblocknode;
  418. nodeclass[statementn]:=cstatementnode;
  419. nodeclass[ifn]:=cifnode;
  420. nodeclass[breakn]:=cbreaknode;
  421. nodeclass[continuen]:=ccontinuenode;
  422. nodeclass[whilerepeatn]:=cwhilerepeatnode;
  423. nodeclass[forn]:=cfornode;
  424. nodeclass[exitn]:=cexitnode;
  425. nodeclass[withn]:=cwithnode;
  426. nodeclass[casen]:=ccasenode;
  427. nodeclass[labeln]:=clabelnode;
  428. nodeclass[goton]:=cgotonode;
  429. nodeclass[tryexceptn]:=ctryexceptnode;
  430. nodeclass[raisen]:=craisenode;
  431. nodeclass[tryfinallyn]:=ctryfinallynode;
  432. nodeclass[onn]:=connode;
  433. nodeclass[isn]:=cisnode;
  434. nodeclass[asn]:=casnode;
  435. nodeclass[caretn]:=caddnode;
  436. nodeclass[starstarn]:=caddnode;
  437. nodeclass[arrayconstructorn]:=carrayconstructornode;
  438. nodeclass[arrayconstructorrangen]:=carrayconstructorrangenode;
  439. nodeclass[tempcreaten]:=ctempcreatenode;
  440. nodeclass[temprefn]:=ctemprefnode;
  441. nodeclass[tempdeleten]:=ctempdeletenode;
  442. nodeclass[addoptn]:=caddnode;
  443. nodeclass[nothingn]:=cnothingnode;
  444. nodeclass[loadvmtaddrn]:=cloadvmtaddrnode;
  445. nodeclass[guidconstn]:=cguidconstnode;
  446. nodeclass[rttin]:=crttinode;
  447. nodeclass[loadparentfpn]:=cloadparentfpnode;
  448. end;
  449. procedure registertais;
  450. {
  451. Register all possible tais in the taiclass array that
  452. will be used for loading the tais from a ppu
  453. }
  454. begin
  455. aiclass[ait_none]:=nil;
  456. aiclass[ait_align]:=tai_align;
  457. aiclass[ait_section]:=tai_section;
  458. aiclass[ait_comment]:=tai_comment;
  459. aiclass[ait_direct]:=tai_direct;
  460. aiclass[ait_string]:=tai_string;
  461. aiclass[ait_instruction]:=taicpu;
  462. aiclass[ait_datablock]:=tai_datablock;
  463. aiclass[ait_symbol]:=tai_symbol;
  464. aiclass[ait_symbol_end]:=tai_symbol_end;
  465. aiclass[ait_label]:=tai_label;
  466. aiclass[ait_const_64bit]:=tai_const;
  467. aiclass[ait_const_32bit]:=tai_const;
  468. aiclass[ait_const_16bit]:=tai_const;
  469. aiclass[ait_const_8bit]:=tai_const;
  470. aiclass[ait_const_indirect_symbol]:=tai_const;
  471. aiclass[ait_const_rva_symbol]:=tai_const;
  472. aiclass[ait_real_32bit]:=tai_real_32bit;
  473. aiclass[ait_real_64bit]:=tai_real_64bit;
  474. aiclass[ait_real_80bit]:=tai_real_80bit;
  475. aiclass[ait_comp_64bit]:=tai_comp_64bit;
  476. {$ifdef GDB}
  477. aiclass[ait_stabn]:=tai_stabn;
  478. aiclass[ait_stabs]:=tai_stabs;
  479. aiclass[ait_force_line]:=tai_force_line;
  480. aiclass[ait_stab_function_name]:=tai_stab_function_name;
  481. {$endif GDB}
  482. {$ifdef alpha}
  483. { the follow is for the DEC Alpha }
  484. aiclass[ait_frame]:=tai_frame;
  485. aiclass[ait_ent]:=tai_ent;
  486. {$endif alpha}
  487. {$ifdef m68k}
  488. {$warning FIXME: tai_labeled_instruction doesn't exists}
  489. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  490. {$endif m68k}
  491. {$ifdef ia64}
  492. aiclass[ait_bundle]:=tai_bundle;
  493. aiclass[ait_stop]:=tai_stop;
  494. {$endif ia64}
  495. {$ifdef SPARC}
  496. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  497. {$endif SPARC}
  498. aiclass[ait_cutobject]:=tai_cutobject;
  499. aiclass[ait_regalloc]:=tai_regalloc;
  500. aiclass[ait_tempalloc]:=tai_tempalloc;
  501. aiclass[ait_marker]:=tai_marker;
  502. end;
  503. end.
  504. {
  505. $Log$
  506. Revision 1.70 2004-06-20 08:55:30 florian
  507. * logs truncated
  508. Revision 1.69 2004/06/16 20:07:09 florian
  509. * dwarf branch merged
  510. Revision 1.68 2004/04/29 19:56:37 daniel
  511. * Prepare compiler infrastructure for multiple ansistring types
  512. Revision 1.67.2.3 2004/04/12 19:34:46 peter
  513. * basic framework for dwarf CFI
  514. Revision 1.67.2.2 2004/04/12 14:45:11 peter
  515. * tai_const_symbol and tai_const merged
  516. Revision 1.67.2.1 2004/04/08 18:33:22 peter
  517. * rewrite of TAsmSection
  518. }