psystem.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  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. ;
  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. begin
  233. loadtype('byte',u8inttype);
  234. loadtype('shortint',s8inttype);
  235. loadtype('word',u16inttype);
  236. loadtype('smallint',s16inttype);
  237. loadtype('ulong',u32inttype);
  238. loadtype('longint',s32inttype);
  239. loadtype('qword',u64inttype);
  240. loadtype('int64',s64inttype);
  241. loadtype('formal',cformaltype);
  242. loadtype('void',voidtype);
  243. loadtype('char',cchartype);
  244. loadtype('widechar',cwidechartype);
  245. loadtype('shortstring',cshortstringtype);
  246. loadtype('longstring',clongstringtype);
  247. {$ifdef ansistring_bits}
  248. loadtype('ansistring16',cansistringtype16);
  249. loadtype('ansistring32',cansistringtype32);
  250. loadtype('ansistring64',cansistringtype64);
  251. {$else}
  252. loadtype('ansistring',cansistringtype);
  253. {$endif}
  254. loadtype('widestring',cwidestringtype);
  255. loadtype('openshortstring',openshortstringtype);
  256. loadtype('openchararray',openchararraytype);
  257. loadtype('s32real',s32floattype);
  258. loadtype('s64real',s64floattype);
  259. loadtype('s80real',s80floattype);
  260. loadtype('s64currency',s64currencytype);
  261. loadtype('boolean',booltype);
  262. loadtype('void_pointer',voidpointertype);
  263. loadtype('char_pointer',charpointertype);
  264. loadtype('widechar_pointer',widecharpointertype);
  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. widecharpointertype.setdef(tpointerdef.create(cwidechartype));
  364. voidfarpointertype.setdef(tpointerdef.createfar(voidtype));
  365. cfiletype.setdef(tfiledef.createuntyped);
  366. cvarianttype.setdef(tvariantdef.create(vt_normalvariant));
  367. colevarianttype.setdef(tvariantdef.create(vt_olevariant));
  368. registerdef:=oldregisterdef;
  369. end;
  370. procedure registernodes;
  371. {
  372. Register all possible nodes in the nodeclass array that
  373. will be used for loading the nodes from a ppu
  374. }
  375. begin
  376. nodeclass[addn]:=caddnode;
  377. nodeclass[muln]:=caddnode;
  378. nodeclass[subn]:=caddnode;
  379. nodeclass[divn]:=cmoddivnode;
  380. nodeclass[symdifn]:=caddnode;
  381. nodeclass[modn]:=cmoddivnode;
  382. nodeclass[assignn]:=cassignmentnode;
  383. nodeclass[loadn]:=cloadnode;
  384. nodeclass[rangen]:=crangenode;
  385. nodeclass[ltn]:=caddnode;
  386. nodeclass[lten]:=caddnode;
  387. nodeclass[gtn]:=caddnode;
  388. nodeclass[gten]:=caddnode;
  389. nodeclass[equaln]:=caddnode;
  390. nodeclass[unequaln]:=caddnode;
  391. nodeclass[inn]:=cinnode;
  392. nodeclass[orn]:=caddnode;
  393. nodeclass[xorn]:=caddnode;
  394. nodeclass[shrn]:=cshlshrnode;
  395. nodeclass[shln]:=cshlshrnode;
  396. nodeclass[slashn]:=caddnode;
  397. nodeclass[andn]:=caddnode;
  398. nodeclass[subscriptn]:=csubscriptnode;
  399. nodeclass[derefn]:=cderefnode;
  400. nodeclass[addrn]:=caddrnode;
  401. nodeclass[ordconstn]:=cordconstnode;
  402. nodeclass[typeconvn]:=ctypeconvnode;
  403. nodeclass[calln]:=ccallnode;
  404. nodeclass[callparan]:=ccallparanode;
  405. nodeclass[realconstn]:=crealconstnode;
  406. nodeclass[unaryminusn]:=cunaryminusnode;
  407. nodeclass[asmn]:=casmnode;
  408. nodeclass[vecn]:=cvecnode;
  409. nodeclass[pointerconstn]:=cpointerconstnode;
  410. nodeclass[stringconstn]:=cstringconstnode;
  411. nodeclass[notn]:=cnotnode;
  412. nodeclass[inlinen]:=cinlinenode;
  413. nodeclass[niln]:=cnilnode;
  414. nodeclass[errorn]:=cerrornode;
  415. nodeclass[typen]:=ctypenode;
  416. nodeclass[setelementn]:=csetelementnode;
  417. nodeclass[setconstn]:=csetconstnode;
  418. nodeclass[blockn]:=cblocknode;
  419. nodeclass[statementn]:=cstatementnode;
  420. nodeclass[ifn]:=cifnode;
  421. nodeclass[breakn]:=cbreaknode;
  422. nodeclass[continuen]:=ccontinuenode;
  423. nodeclass[whilerepeatn]:=cwhilerepeatnode;
  424. nodeclass[forn]:=cfornode;
  425. nodeclass[exitn]:=cexitnode;
  426. nodeclass[withn]:=cwithnode;
  427. nodeclass[casen]:=ccasenode;
  428. nodeclass[labeln]:=clabelnode;
  429. nodeclass[goton]:=cgotonode;
  430. nodeclass[tryexceptn]:=ctryexceptnode;
  431. nodeclass[raisen]:=craisenode;
  432. nodeclass[tryfinallyn]:=ctryfinallynode;
  433. nodeclass[onn]:=connode;
  434. nodeclass[isn]:=cisnode;
  435. nodeclass[asn]:=casnode;
  436. nodeclass[caretn]:=caddnode;
  437. nodeclass[starstarn]:=caddnode;
  438. nodeclass[arrayconstructorn]:=carrayconstructornode;
  439. nodeclass[arrayconstructorrangen]:=carrayconstructorrangenode;
  440. nodeclass[tempcreaten]:=ctempcreatenode;
  441. nodeclass[temprefn]:=ctemprefnode;
  442. nodeclass[tempdeleten]:=ctempdeletenode;
  443. nodeclass[addoptn]:=caddnode;
  444. nodeclass[nothingn]:=cnothingnode;
  445. nodeclass[loadvmtaddrn]:=cloadvmtaddrnode;
  446. nodeclass[guidconstn]:=cguidconstnode;
  447. nodeclass[rttin]:=crttinode;
  448. nodeclass[loadparentfpn]:=cloadparentfpnode;
  449. end;
  450. procedure registertais;
  451. {
  452. Register all possible tais in the taiclass array that
  453. will be used for loading the tais from a ppu
  454. }
  455. begin
  456. aiclass[ait_none]:=nil;
  457. aiclass[ait_align]:=tai_align;
  458. aiclass[ait_section]:=tai_section;
  459. aiclass[ait_comment]:=tai_comment;
  460. aiclass[ait_direct]:=tai_direct;
  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_label]:=tai_label;
  467. aiclass[ait_const_64bit]:=tai_const;
  468. aiclass[ait_const_32bit]:=tai_const;
  469. aiclass[ait_const_16bit]:=tai_const;
  470. aiclass[ait_const_8bit]:=tai_const;
  471. aiclass[ait_const_indirect_symbol]:=tai_const;
  472. aiclass[ait_const_rva_symbol]:=tai_const;
  473. aiclass[ait_real_32bit]:=tai_real_32bit;
  474. aiclass[ait_real_64bit]:=tai_real_64bit;
  475. aiclass[ait_real_80bit]:=tai_real_80bit;
  476. aiclass[ait_comp_64bit]:=tai_comp_64bit;
  477. {$ifdef GDB}
  478. aiclass[ait_stabn]:=tai_stabn;
  479. aiclass[ait_stabs]:=tai_stabs;
  480. aiclass[ait_force_line]:=tai_force_line;
  481. aiclass[ait_stab_function_name]:=tai_stab_function_name;
  482. {$endif GDB}
  483. {$ifdef alpha}
  484. { the follow is for the DEC Alpha }
  485. aiclass[ait_frame]:=tai_frame;
  486. aiclass[ait_ent]:=tai_ent;
  487. {$endif alpha}
  488. {$ifdef m68k}
  489. {$warning FIXME: tai_labeled_instruction doesn't exists}
  490. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  491. {$endif m68k}
  492. {$ifdef ia64}
  493. aiclass[ait_bundle]:=tai_bundle;
  494. aiclass[ait_stop]:=tai_stop;
  495. {$endif ia64}
  496. {$ifdef SPARC}
  497. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  498. {$endif SPARC}
  499. aiclass[ait_cutobject]:=tai_cutobject;
  500. aiclass[ait_regalloc]:=tai_regalloc;
  501. aiclass[ait_tempalloc]:=tai_tempalloc;
  502. aiclass[ait_marker]:=tai_marker;
  503. end;
  504. end.
  505. {
  506. $Log$
  507. Revision 1.75 2004-12-07 16:11:52 peter
  508. * set vo_explicit_paraloc flag
  509. Revision 1.74 2004/12/07 13:52:54 michael
  510. * Convert array of widechar to pwidechar instead of pchar
  511. Revision 1.73 2004/11/08 22:09:59 peter
  512. * tvarsym splitted
  513. Revision 1.72 2004/10/15 09:14:17 mazen
  514. - remove $IFDEF DELPHI and related code
  515. - remove $IFDEF FPCPROCVAR and related code
  516. Revision 1.71 2004/07/05 21:49:43 olle
  517. + macpas style: exit, cycle, leave
  518. + macpas compiler directive: PUSH POP
  519. Revision 1.70 2004/06/20 08:55:30 florian
  520. * logs truncated
  521. Revision 1.69 2004/06/16 20:07:09 florian
  522. * dwarf branch merged
  523. Revision 1.68 2004/04/29 19:56:37 daniel
  524. * Prepare compiler infrastructure for multiple ansistring types
  525. Revision 1.67.2.3 2004/04/12 19:34:46 peter
  526. * basic framework for dwarf CFI
  527. Revision 1.67.2.2 2004/04/12 14:45:11 peter
  528. * tai_const_symbol and tai_const merged
  529. Revision 1.67.2.1 2004/04/08 18:33:22 peter
  530. * rewrite of TAsmSection
  531. }