aasm.pas 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893
  1. {
  2. $Id$
  3. Copyright (c) 1996-98 by Florian Klaempfl
  4. This unit implements an abstract asmoutput class for all processor types
  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 aasm;
  19. interface
  20. uses
  21. cobjects,files,globals;
  22. type
  23. {$ifdef i386}
  24. bestreal = extended;
  25. {$endif}
  26. {$ifdef m68k}
  27. bestreal = real;
  28. {$endif}
  29. tait = (
  30. ait_string,
  31. ait_label,
  32. ait_direct,
  33. ait_labeled_instruction,
  34. ait_comment,
  35. ait_instruction,
  36. ait_datablock,
  37. ait_symbol,
  38. ait_const_32bit,
  39. ait_const_symbol,
  40. ait_const_16bit,
  41. ait_const_8bit,
  42. ait_real_64bit,
  43. ait_real_32bit,
  44. ait_real_extended,
  45. ait_comp,
  46. ait_external,
  47. ait_align,
  48. ait_section,
  49. { the following is only used by the win32 version of the compiler }
  50. { and only the GNU AS Win32 is able to write it }
  51. ait_const_rva,
  52. {$ifdef GDB}
  53. ait_stabn,
  54. ait_stabs,
  55. ait_stab_function_name,
  56. {$endif GDB}
  57. ait_cut, { used to split into tiny assembler files }
  58. {$ifdef REGALLOC}
  59. ait_regalloc,
  60. ait_regdealloc,
  61. {$endif REGALLOC}
  62. { never used, makes insertation of new ait_ easier to type }
  63. ait_dummy);
  64. type
  65. { the short name makes typing easier }
  66. pai = ^tai;
  67. tai = object(tlinkedlist_item)
  68. typ : tait;
  69. fileinfo : tfileposinfo;
  70. constructor init;
  71. end;
  72. pai_string = ^tai_string;
  73. tai_string = object(tai)
  74. str : pchar;
  75. { extra len so the string can contain an \0 }
  76. len : longint;
  77. constructor init(const _str : string);
  78. constructor init_pchar(_str : pchar);
  79. constructor init_length_pchar(_str : pchar;length : longint);
  80. destructor done;virtual;
  81. end;
  82. { generates a common label }
  83. pai_symbol = ^tai_symbol;
  84. tai_symbol = object(tai)
  85. name : pchar;
  86. is_global : boolean;
  87. constructor init(const _name : string);
  88. constructor init_global(const _name : string);
  89. destructor done;virtual;
  90. end;
  91. { external types defined for TASM }
  92. { EXT_ANY for search purposes }
  93. texternal_typ = (EXT_ANY,EXT_NEAR, EXT_FAR, EXT_PROC, EXT_BYTE,
  94. EXT_WORD, EXT_DWORD, EXT_CODEPTR, EXT_DATAPTR,
  95. EXT_FWORD, EXT_PWORD, EXT_QWORD, EXT_TBYTE, EXT_ABS);
  96. { generates an symbol which is marked as external }
  97. pai_external = ^tai_external;
  98. tai_external = object(tai)
  99. name : pchar;
  100. exttyp : texternal_typ;
  101. constructor init(const _name : string;exttype : texternal_typ);
  102. destructor done; virtual;
  103. end;
  104. { type for a temporary label test if used for dispose of
  105. unnecessary labels }
  106. plabel = ^tlabel;
  107. tlabel = record
  108. nb : longint;
  109. is_data : boolean;
  110. is_used : boolean;
  111. is_set : boolean;
  112. refcount : word;
  113. end;
  114. pai_label = ^tai_label;
  115. tai_label = object(tai)
  116. l : plabel;
  117. constructor init(_l : plabel);
  118. destructor done; virtual;
  119. end;
  120. pai_direct = ^tai_direct;
  121. tai_direct = object(tai)
  122. str : pchar;
  123. constructor init(_str : pchar);
  124. destructor done; virtual;
  125. end;
  126. { to insert a comment into the generated assembler file }
  127. pai_asm_comment = ^tai_asm_comment;
  128. tai_asm_comment = object(tai)
  129. str : pchar;
  130. constructor init(_str : pchar);
  131. destructor done; virtual;
  132. end;
  133. { alignment for operator }
  134. pai_align = ^tai_align;
  135. tai_align = object(tai)
  136. aligntype: byte; { 1 = no align, 2 = word align, 4 = dword align }
  137. op: byte; { value to fill with - optional }
  138. constructor init(b:byte);
  139. constructor init_op(b: byte; use_op: byte);
  140. destructor done;virtual;
  141. end;
  142. tsection=(sec_none,sec_code,sec_data,sec_bss,sec_idata);
  143. { Insert a section/segment directive }
  144. pai_section = ^tai_section;
  145. tai_section = object(tai)
  146. sec : tsection;
  147. idataidx : longint;
  148. constructor init(s : tsection);
  149. constructor init_idata(i:longint);
  150. destructor done;virtual;
  151. end;
  152. { generates an uninitializised data block }
  153. pai_datablock = ^tai_datablock;
  154. tai_datablock = object(tai)
  155. size : longint;
  156. name : pchar;
  157. is_global : boolean;
  158. constructor init(const _name : string;_size : longint);
  159. constructor init_global(const _name : string;_size : longint);
  160. destructor done; virtual;
  161. end;
  162. { generates a long integer (32 bit) }
  163. pai_const = ^tai_const;
  164. tai_const = object(tai)
  165. value : longint;
  166. constructor init_32bit(_value : longint);
  167. constructor init_16bit(_value : word);
  168. constructor init_8bit(_value : byte);
  169. constructor init_symbol(p : pchar);
  170. constructor init_rva(p : pchar);
  171. destructor done;virtual;
  172. end;
  173. { generates a double (64 bit real) }
  174. pai_double = ^tai_double;
  175. tai_double = object(tai)
  176. value : double;
  177. constructor init(_value : double);
  178. end;
  179. { generates an comp (integer over 64 bits) }
  180. pai_comp = ^tai_comp;
  181. tai_comp = object(tai)
  182. value : bestreal;
  183. constructor init(_value : bestreal);
  184. { usefull for 64 bits apps, maybe later }
  185. constructor init_comp(_value : comp);
  186. end;
  187. { generates a single (32 bit real) }
  188. pai_single = ^tai_single;
  189. tai_single = object(tai)
  190. value : single;
  191. constructor init(_value : single);
  192. end;
  193. { generates an extended (80 bit real) }
  194. pai_extended = ^tai_extended;
  195. tai_extended = object(tai)
  196. value : bestreal;
  197. constructor init(_value : bestreal);
  198. end;
  199. { insert a cut to split into several smaller files }
  200. pai_cut = ^tai_cut;
  201. tai_cut = object(tai)
  202. constructor init;
  203. end;
  204. { for each processor define the best precision }
  205. { bestreal is defined in globals }
  206. {$ifdef i386}
  207. const
  208. ait_bestreal = ait_real_extended;
  209. type
  210. pai_bestreal = pai_extended;
  211. tai_bestreal = tai_extended;
  212. {$endif i386}
  213. {$ifdef m68k}
  214. const
  215. ait_bestreal = ait_real_32bit;
  216. type
  217. pai_bestreal = pai_single;
  218. tai_bestreal = tai_single;
  219. {$endif m68k}
  220. paasmoutput = ^taasmoutput;
  221. taasmoutput = tlinkedlist;
  222. var
  223. { temporary lists }
  224. exprasmlist,
  225. { default lists }
  226. datasegment,codesegment,bsssegment,
  227. internals,externals,debuglist,consts,
  228. importssection,exportssection,
  229. resourcesection,rttilist : paasmoutput;
  230. { external symbols without repetition }
  231. function search_assembler_symbol(pl : paasmoutput;const _name : string;exttype : texternal_typ) : pai_external;
  232. procedure concat_external(const _name : string;exttype : texternal_typ);
  233. procedure concat_internal(const _name : string;exttype : texternal_typ);
  234. { label functions }
  235. const
  236. nextlabelnr : longint = 1;
  237. { convert label to string}
  238. function lab2str(l : plabel) : string;
  239. { make l as a new label }
  240. procedure getlabel(var l : plabel);
  241. { make l as a new label and flag is_data }
  242. procedure getdatalabel(var l : plabel);
  243. { frees the label if unused }
  244. procedure freelabel(var l : plabel);
  245. { make a new zero label }
  246. procedure getzerolabel(var l : plabel);
  247. { reset a label to a zero label }
  248. procedure setzerolabel(var l : plabel);
  249. {just get a label number }
  250. procedure getlabelnr(var l : longint);
  251. implementation
  252. uses
  253. strings,verbose,systems;
  254. {****************************************************************************
  255. TAI
  256. ****************************************************************************}
  257. constructor tai.init;
  258. begin
  259. fileinfo:=aktfilepos;
  260. end;
  261. {****************************************************************************
  262. TAI_SECTION
  263. ****************************************************************************}
  264. constructor tai_section.init(s : tsection);
  265. begin
  266. inherited init;
  267. typ:=ait_section;
  268. sec:=s;
  269. idataidx:=0;
  270. end;
  271. constructor tai_section.init_idata(i:longint);
  272. begin
  273. inherited init;
  274. typ:=ait_section;
  275. sec:=sec_idata;
  276. idataidx:=i;
  277. end;
  278. destructor tai_section.done;
  279. begin
  280. inherited done;
  281. end;
  282. {****************************************************************************
  283. TAI_DATABLOCK
  284. ****************************************************************************}
  285. constructor tai_datablock.init(const _name : string;_size : longint);
  286. begin
  287. inherited init;
  288. typ:=ait_datablock;
  289. name:=strpnew(_name);
  290. concat_internal(_name,EXT_ANY);
  291. size:=_size;
  292. is_global:=false;
  293. end;
  294. constructor tai_datablock.init_global(const _name : string;_size : longint);
  295. begin
  296. inherited init;
  297. typ:=ait_datablock;
  298. name:=strpnew(_name);
  299. concat_internal(_name,EXT_ANY);
  300. size:=_size;
  301. is_global:=true;
  302. end;
  303. destructor tai_datablock.done;
  304. begin
  305. strdispose(name);
  306. inherited done;
  307. end;
  308. {****************************************************************************
  309. TAI_SYMBOL
  310. ****************************************************************************}
  311. constructor tai_symbol.init(const _name : string);
  312. begin
  313. inherited init;
  314. typ:=ait_symbol;
  315. name:=strpnew(_name);
  316. concat_internal(_name,EXT_ANY);
  317. is_global:=false;
  318. end;
  319. constructor tai_symbol.init_global(const _name : string);
  320. begin
  321. inherited init;
  322. typ:=ait_symbol;
  323. name:=strpnew(_name);
  324. concat_internal(_name,EXT_ANY);
  325. is_global:=true;
  326. end;
  327. destructor tai_symbol.done;
  328. begin
  329. strdispose(name);
  330. inherited done;
  331. end;
  332. {****************************************************************************
  333. TAI_EXTERNAL
  334. ****************************************************************************}
  335. constructor tai_external.init(const _name : string;exttype : texternal_typ);
  336. begin
  337. inherited init;
  338. typ:=ait_external;
  339. exttyp:=exttype;
  340. name:=strpnew(_name);
  341. end;
  342. destructor tai_external.done;
  343. begin
  344. strdispose(name);
  345. inherited done;
  346. end;
  347. {****************************************************************************
  348. TAI_CONST
  349. ****************************************************************************}
  350. constructor tai_const.init_32bit(_value : longint);
  351. begin
  352. inherited init;
  353. typ:=ait_const_32bit;
  354. value:=_value;
  355. end;
  356. constructor tai_const.init_16bit(_value : word);
  357. begin
  358. inherited init;
  359. typ:=ait_const_16bit;
  360. value:=_value;
  361. end;
  362. constructor tai_const.init_8bit(_value : byte);
  363. begin
  364. inherited init;
  365. typ:=ait_const_8bit;
  366. value:=_value;
  367. end;
  368. constructor tai_const.init_symbol(p : pchar);
  369. begin
  370. inherited init;
  371. typ:=ait_const_symbol;
  372. value:=longint(p);
  373. end;
  374. constructor tai_const.init_rva(p : pchar);
  375. begin
  376. inherited init;
  377. typ:=ait_const_rva;
  378. value:=longint(p);
  379. end;
  380. destructor tai_const.done;
  381. begin
  382. if typ=ait_const_symbol then
  383. strdispose(pchar(value));
  384. inherited done;
  385. end;
  386. {****************************************************************************
  387. TAI_DOUBLE
  388. ****************************************************************************}
  389. constructor tai_double.init(_value : double);
  390. begin
  391. inherited init;
  392. typ:=ait_real_64bit;
  393. value:=_value;
  394. end;
  395. {****************************************************************************
  396. TAI_SINGLE
  397. ****************************************************************************}
  398. constructor tai_single.init(_value : single);
  399. begin
  400. inherited init;
  401. typ:=ait_real_32bit;
  402. value:=_value;
  403. end;
  404. {****************************************************************************
  405. TAI_EXTENDED
  406. ****************************************************************************}
  407. constructor tai_extended.init(_value : bestreal);
  408. begin
  409. inherited init;
  410. typ:=ait_real_extended;
  411. value:=_value;
  412. end;
  413. {****************************************************************************
  414. TAI_COMP
  415. ****************************************************************************}
  416. constructor tai_comp.init(_value : bestreal);
  417. begin
  418. inherited init;
  419. typ:=ait_comp;
  420. value:=_value;
  421. end;
  422. constructor tai_comp.init_comp(_value : comp);
  423. begin
  424. inherited init;
  425. typ:=ait_comp;
  426. value:=_value;
  427. end;
  428. {****************************************************************************
  429. TAI_STRING
  430. ****************************************************************************}
  431. constructor tai_string.init(const _str : string);
  432. begin
  433. inherited init;
  434. typ:=ait_string;
  435. getmem(str,length(_str)+1);
  436. strpcopy(str,_str);
  437. len:=length(_str);
  438. end;
  439. constructor tai_string.init_pchar(_str : pchar);
  440. begin
  441. inherited init;
  442. typ:=ait_string;
  443. str:=_str;
  444. len:=strlen(_str);
  445. end;
  446. constructor tai_string.init_length_pchar(_str : pchar;length : longint);
  447. begin
  448. inherited init;
  449. typ:=ait_string;
  450. str:=_str;
  451. len:=length;
  452. end;
  453. destructor tai_string.done;
  454. begin
  455. { you can have #0 inside the strings so }
  456. if str<>nil then
  457. freemem(str,len+1);
  458. inherited done;
  459. end;
  460. {****************************************************************************
  461. TAI_LABEL
  462. ****************************************************************************}
  463. constructor tai_label.init(_l : plabel);
  464. begin
  465. inherited init;
  466. typ:=ait_label;
  467. l:=_l;
  468. l^.is_set:=true;
  469. end;
  470. destructor tai_label.done;
  471. begin
  472. if (l^.is_used) then
  473. l^.is_set:=false
  474. else
  475. dispose(l);
  476. inherited done;
  477. end;
  478. {****************************************************************************
  479. TAI_DIRECT
  480. ****************************************************************************}
  481. constructor tai_direct.init(_str : pchar);
  482. begin
  483. inherited init;
  484. typ:=ait_direct;
  485. str:=_str;
  486. end;
  487. destructor tai_direct.done;
  488. begin
  489. strdispose(str);
  490. inherited done;
  491. end;
  492. {****************************************************************************
  493. TAI_ASM_COMMENT
  494. comment to be inserted in the assembler file
  495. ****************************************************************************}
  496. constructor tai_asm_comment.init(_str : pchar);
  497. begin
  498. inherited init;
  499. typ:=ait_comment;
  500. str:=_str;
  501. end;
  502. destructor tai_asm_comment.done;
  503. begin
  504. strdispose(str);
  505. inherited done;
  506. end;
  507. {****************************************************************************
  508. TAI_ALIGN
  509. ****************************************************************************}
  510. constructor tai_align.init(b: byte);
  511. begin
  512. inherited init;
  513. typ:=ait_align;
  514. if b in [1,2,4,8,16] then
  515. aligntype := b
  516. else
  517. aligntype := 1;
  518. op:=0;
  519. end;
  520. constructor tai_align.init_op(b: byte; use_op: byte);
  521. begin
  522. inherited init;
  523. typ:=ait_align;
  524. if b in [1,2,4,8,16] then
  525. aligntype := b
  526. else
  527. aligntype := 1;
  528. op:=use_op;
  529. end;
  530. destructor tai_align.done;
  531. begin
  532. inherited done;
  533. end;
  534. {****************************************************************************
  535. TAI_CUT
  536. ****************************************************************************}
  537. constructor tai_cut.init;
  538. begin
  539. inherited init;
  540. typ:=ait_cut;
  541. end;
  542. {*****************************************************************************
  543. External Helpers
  544. *****************************************************************************}
  545. function search_assembler_symbol(pl : paasmoutput;const _name : string;exttype : texternal_typ) : pai_external;
  546. var
  547. p : pai;
  548. begin
  549. search_assembler_symbol:=nil;
  550. if pl=nil then
  551. internalerror(2001)
  552. else
  553. begin
  554. p:=pai(pl^.first);
  555. while (p<>nil) and
  556. (p<>pai(pl^.last)) do
  557. { if we get the same name with a different typ }
  558. { there is probably an error }
  559. if (p^.typ=ait_external) and
  560. ((exttype=EXT_ANY) or (pai_external(p)^.exttyp=exttype)) and
  561. (strpas(pai_external(p)^.name)=_name) then
  562. begin
  563. search_assembler_symbol:=pai_external(p);
  564. exit;
  565. end
  566. else
  567. p:=pai(p^.next);
  568. if (p<>nil) and
  569. (p^.typ=ait_external) and
  570. (pai_external(p)^.exttyp=exttype) and
  571. (strpas(pai_external(p)^.name)=_name) then
  572. begin
  573. search_assembler_symbol:=pai_external(p);
  574. exit;
  575. end;
  576. end;
  577. end;
  578. { insert each need external only once }
  579. procedure concat_external(const _name : string;exttype : texternal_typ);
  580. begin
  581. if not target_asm.externals then
  582. exit;
  583. if search_assembler_symbol(externals,_name,exttype)=nil then
  584. externals^.concat(new(pai_external,init(_name,exttype)));
  585. end;
  586. { insert each need internal only once }
  587. procedure concat_internal(const _name : string;exttype : texternal_typ);
  588. begin
  589. if not target_asm.externals then
  590. exit;
  591. if search_assembler_symbol(internals,_name,exttype)=nil then
  592. internals^.concat(new(pai_external,init(_name,exttype)));
  593. end;
  594. {*****************************************************************************
  595. Label Helpers
  596. *****************************************************************************}
  597. function lab2str(l : plabel) : string;
  598. begin
  599. if (l=nil) or (l^.nb=0) then
  600. begin
  601. {$ifdef EXTDEBUG}
  602. lab2str:='ILLEGAL'
  603. {$else EXTDEBUG}
  604. internalerror(2000);
  605. {$endif EXTDEBUG}
  606. end
  607. else
  608. begin
  609. if (l^.is_data) and (cs_smartlink in aktmoduleswitches) then
  610. lab2str:='_$'+current_module^.modulename^+'$_L'+tostr(l^.nb)
  611. else
  612. lab2str:=target_asm.labelprefix+tostr(l^.nb);
  613. end;
  614. inc(l^.refcount);
  615. l^.is_used:=true;
  616. end;
  617. procedure getlabel(var l : plabel);
  618. begin
  619. new(l);
  620. l^.nb:=nextlabelnr;
  621. l^.is_used:=false;
  622. l^.is_set:=false;
  623. l^.is_data:=false;
  624. l^.refcount:=0;
  625. inc(nextlabelnr);
  626. end;
  627. procedure getdatalabel(var l : plabel);
  628. begin
  629. new(l);
  630. l^.nb:=nextlabelnr;
  631. l^.is_used:=false;
  632. l^.is_set:=false;
  633. l^.is_data:=true;
  634. l^.refcount:=0;
  635. inc(nextlabelnr);
  636. end;
  637. procedure freelabel(var l : plabel);
  638. begin
  639. if (l<>nil) and (not l^.is_set) and (not l^.is_used) then
  640. dispose(l);
  641. l:=nil;
  642. end;
  643. procedure setzerolabel(var l : plabel);
  644. begin
  645. with l^ do
  646. begin
  647. nb:=0;
  648. is_used:=false;
  649. is_set:=false;
  650. is_data:=false;
  651. refcount:=0;
  652. end;
  653. end;
  654. procedure getzerolabel(var l : plabel);
  655. begin
  656. new(l);
  657. l^.nb:=0;
  658. l^.is_used:=false;
  659. l^.is_set:=false;
  660. l^.is_data:=false;
  661. l^.refcount:=0;
  662. end;
  663. procedure getlabelnr(var l : longint);
  664. begin
  665. l:=nextlabelnr;
  666. inc(nextlabelnr);
  667. end;
  668. end.
  669. {
  670. $Log$
  671. Revision 1.13 1998-08-10 14:49:33 peter
  672. + localswitches, moduleswitches, globalswitches splitting
  673. Revision 1.12 1998/07/14 14:46:36 peter
  674. * released NEWINPUT
  675. Revision 1.11 1998/07/07 11:19:50 peter
  676. + NEWINPUT for a better inputfile and scanner object
  677. Revision 1.10 1998/06/08 22:59:41 peter
  678. * smartlinking works for win32
  679. * some defines to exclude some compiler parts
  680. Revision 1.9 1998/06/04 23:51:26 peter
  681. * m68k compiles
  682. + .def file creation moved to gendef.pas so it could also be used
  683. for win32
  684. Revision 1.8 1998/05/23 01:20:53 peter
  685. + aktasmmode, aktoptprocessor, aktoutputformat
  686. + smartlink per module $SMARTLINK-/+ (like MMX) and moved to aktswitches
  687. + $LIBNAME to set the library name where the unit will be put in
  688. * splitted cgi386 a bit (codeseg to large for bp7)
  689. * nasm, tasm works again. nasm moved to ag386nsm.pas
  690. Revision 1.7 1998/05/07 00:16:59 peter
  691. * smartlinking for sets
  692. + consts labels are now concated/generated in hcodegen
  693. * moved some cpu code to cga and some none cpu depended code from cga
  694. to tree and hcodegen and cleanup of hcodegen
  695. * assembling .. output reduced for smartlinking ;)
  696. Revision 1.6 1998/05/06 18:36:53 peter
  697. * tai_section extended with code,data,bss sections and enumerated type
  698. * ident 'compiled by FPC' moved to pmodules
  699. * small fix for smartlink
  700. Revision 1.5 1998/05/01 07:43:52 florian
  701. + basics for rtti implemented
  702. + switch $m (generate rtti for published sections)
  703. Revision 1.4 1998/04/29 10:33:40 pierre
  704. + added some code for ansistring (not complete nor working yet)
  705. * corrected operator overloading
  706. * corrected nasm output
  707. + started inline procedures
  708. + added starstarn : use ** for exponentiation (^ gave problems)
  709. + started UseTokenInfo cond to get accurate positions
  710. Revision 1.3 1998/04/27 23:10:27 peter
  711. + new scanner
  712. * $makelib -> if smartlink
  713. * small filename fixes pmodule.setfilename
  714. * moved import from files.pas -> import.pas
  715. Revision 1.2 1998/04/09 15:46:37 florian
  716. + register allocation tracing stuff added
  717. }