psystem.pas 22 KB

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