aasm.pas 24 KB

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