aasm.pas 24 KB

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