aasm.pas 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930
  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. pbestreal=^bestreal;
  34. tait = (
  35. ait_string,
  36. ait_label,
  37. ait_direct,
  38. ait_labeled_instruction,
  39. ait_comment,
  40. ait_instruction,
  41. ait_datablock,
  42. ait_symbol,
  43. ait_const_32bit,
  44. ait_const_symbol,
  45. ait_const_16bit,
  46. ait_const_8bit,
  47. ait_real_64bit,
  48. ait_real_32bit,
  49. ait_real_extended,
  50. ait_comp,
  51. ait_external,
  52. ait_align,
  53. ait_section,
  54. { the following is only used by the win32 version of the compiler }
  55. { and only the GNU AS Win32 is able to write it }
  56. ait_const_rva,
  57. ait_stabn,
  58. ait_stabs,
  59. ait_stab_function_name,
  60. ait_cut, { used to split into tiny assembler files }
  61. ait_regalloc,
  62. ait_regdealloc,
  63. { never used, makes insertation of new ait_ easier to type }
  64. ait_dummy);
  65. type
  66. { the short name makes typing easier }
  67. pai = ^tai;
  68. tai = object(tlinkedlist_item)
  69. typ : tait;
  70. fileinfo : tfileposinfo;
  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. endname : boolean;
  204. constructor init;
  205. constructor init_end;
  206. end;
  207. { for each processor define the best precision }
  208. { bestreal is defined in globals }
  209. {$ifdef i386}
  210. const
  211. ait_bestreal = ait_real_extended;
  212. type
  213. pai_bestreal = pai_extended;
  214. tai_bestreal = tai_extended;
  215. {$endif i386}
  216. {$ifdef m68k}
  217. const
  218. ait_bestreal = ait_real_32bit;
  219. type
  220. pai_bestreal = pai_single;
  221. tai_bestreal = tai_single;
  222. {$endif m68k}
  223. paasmoutput = ^taasmoutput;
  224. taasmoutput = object(tlinkedlist)
  225. function getlasttaifilepos : pfileposinfo;
  226. end;
  227. var
  228. { temporary lists }
  229. exprasmlist,
  230. { default lists }
  231. datasegment,codesegment,bsssegment,
  232. internals,externals,debuglist,consts,
  233. importssection,exportssection,
  234. resourcesection,rttilist : paasmoutput;
  235. { external symbols without repetition }
  236. function search_assembler_symbol(pl : paasmoutput;const _name : string;exttype : texternal_typ) : pai_external;
  237. procedure concat_external(const _name : string;exttype : texternal_typ);
  238. procedure concat_internal(const _name : string;exttype : texternal_typ);
  239. { label functions }
  240. const
  241. nextlabelnr : longint = 1;
  242. { convert label to string}
  243. function lab2str(l : plabel) : string;
  244. { make l as a new label }
  245. procedure getlabel(var l : plabel);
  246. { make l as a new label and flag is_data }
  247. procedure getdatalabel(var l : plabel);
  248. { frees the label if unused }
  249. procedure freelabel(var l : plabel);
  250. { make a new zero label }
  251. procedure getzerolabel(var l : plabel);
  252. { reset a label to a zero label }
  253. procedure setzerolabel(var l : plabel);
  254. {just get a label number }
  255. procedure getlabelnr(var l : longint);
  256. implementation
  257. uses
  258. strings,verbose,systems;
  259. {****************************************************************************
  260. TAI
  261. ****************************************************************************}
  262. constructor tai.init;
  263. begin
  264. fileinfo:=aktfilepos;
  265. end;
  266. {****************************************************************************
  267. TAI_SECTION
  268. ****************************************************************************}
  269. constructor tai_section.init(s : tsection);
  270. begin
  271. inherited init;
  272. typ:=ait_section;
  273. sec:=s;
  274. idataidx:=0;
  275. end;
  276. constructor tai_section.init_idata(i:longint);
  277. begin
  278. inherited init;
  279. typ:=ait_section;
  280. sec:=sec_idata;
  281. idataidx:=i;
  282. end;
  283. destructor tai_section.done;
  284. begin
  285. inherited done;
  286. end;
  287. {****************************************************************************
  288. TAI_DATABLOCK
  289. ****************************************************************************}
  290. constructor tai_datablock.init(const _name : string;_size : longint);
  291. begin
  292. inherited init;
  293. typ:=ait_datablock;
  294. name:=strpnew(_name);
  295. concat_internal(_name,EXT_ANY);
  296. size:=_size;
  297. is_global:=false;
  298. end;
  299. constructor tai_datablock.init_global(const _name : string;_size : longint);
  300. begin
  301. inherited init;
  302. typ:=ait_datablock;
  303. name:=strpnew(_name);
  304. concat_internal(_name,EXT_ANY);
  305. size:=_size;
  306. is_global:=true;
  307. end;
  308. destructor tai_datablock.done;
  309. begin
  310. strdispose(name);
  311. inherited done;
  312. end;
  313. {****************************************************************************
  314. TAI_SYMBOL
  315. ****************************************************************************}
  316. constructor tai_symbol.init(const _name : string);
  317. begin
  318. inherited init;
  319. typ:=ait_symbol;
  320. name:=strpnew(_name);
  321. concat_internal(_name,EXT_ANY);
  322. is_global:=false;
  323. end;
  324. constructor tai_symbol.init_global(const _name : string);
  325. begin
  326. inherited init;
  327. typ:=ait_symbol;
  328. name:=strpnew(_name);
  329. concat_internal(_name,EXT_ANY);
  330. is_global:=true;
  331. end;
  332. destructor tai_symbol.done;
  333. begin
  334. strdispose(name);
  335. inherited done;
  336. end;
  337. {****************************************************************************
  338. TAI_EXTERNAL
  339. ****************************************************************************}
  340. constructor tai_external.init(const _name : string;exttype : texternal_typ);
  341. begin
  342. inherited init;
  343. typ:=ait_external;
  344. exttyp:=exttype;
  345. name:=strpnew(_name);
  346. end;
  347. destructor tai_external.done;
  348. begin
  349. strdispose(name);
  350. inherited done;
  351. end;
  352. {****************************************************************************
  353. TAI_CONST
  354. ****************************************************************************}
  355. constructor tai_const.init_32bit(_value : longint);
  356. begin
  357. inherited init;
  358. typ:=ait_const_32bit;
  359. value:=_value;
  360. end;
  361. constructor tai_const.init_16bit(_value : word);
  362. begin
  363. inherited init;
  364. typ:=ait_const_16bit;
  365. value:=_value;
  366. end;
  367. constructor tai_const.init_8bit(_value : byte);
  368. begin
  369. inherited init;
  370. typ:=ait_const_8bit;
  371. value:=_value;
  372. end;
  373. constructor tai_const.init_symbol(p : pchar);
  374. begin
  375. inherited init;
  376. typ:=ait_const_symbol;
  377. value:=longint(p);
  378. end;
  379. constructor tai_const.init_rva(p : pchar);
  380. begin
  381. inherited init;
  382. typ:=ait_const_rva;
  383. value:=longint(p);
  384. end;
  385. destructor tai_const.done;
  386. begin
  387. if typ=ait_const_symbol then
  388. strdispose(pchar(value));
  389. inherited done;
  390. end;
  391. {****************************************************************************
  392. TAI_DOUBLE
  393. ****************************************************************************}
  394. constructor tai_double.init(_value : double);
  395. begin
  396. inherited init;
  397. typ:=ait_real_64bit;
  398. value:=_value;
  399. end;
  400. {****************************************************************************
  401. TAI_SINGLE
  402. ****************************************************************************}
  403. constructor tai_single.init(_value : single);
  404. begin
  405. inherited init;
  406. typ:=ait_real_32bit;
  407. value:=_value;
  408. end;
  409. {****************************************************************************
  410. TAI_EXTENDED
  411. ****************************************************************************}
  412. constructor tai_extended.init(_value : bestreal);
  413. begin
  414. inherited init;
  415. typ:=ait_real_extended;
  416. value:=_value;
  417. end;
  418. {****************************************************************************
  419. TAI_COMP
  420. ****************************************************************************}
  421. constructor tai_comp.init(_value : bestreal);
  422. begin
  423. inherited init;
  424. typ:=ait_comp;
  425. value:=_value;
  426. end;
  427. constructor tai_comp.init_comp(_value : comp);
  428. begin
  429. inherited init;
  430. typ:=ait_comp;
  431. value:=_value;
  432. end;
  433. {****************************************************************************
  434. TAI_STRING
  435. ****************************************************************************}
  436. constructor tai_string.init(const _str : string);
  437. begin
  438. inherited init;
  439. typ:=ait_string;
  440. getmem(str,length(_str)+1);
  441. strpcopy(str,_str);
  442. len:=length(_str);
  443. end;
  444. constructor tai_string.init_pchar(_str : pchar);
  445. begin
  446. inherited init;
  447. typ:=ait_string;
  448. str:=_str;
  449. len:=strlen(_str);
  450. end;
  451. constructor tai_string.init_length_pchar(_str : pchar;length : longint);
  452. begin
  453. inherited init;
  454. typ:=ait_string;
  455. str:=_str;
  456. len:=length;
  457. end;
  458. destructor tai_string.done;
  459. begin
  460. { you can have #0 inside the strings so }
  461. if str<>nil then
  462. freemem(str,len+1);
  463. inherited done;
  464. end;
  465. {****************************************************************************
  466. TAI_LABEL
  467. ****************************************************************************}
  468. constructor tai_label.init(_l : plabel);
  469. begin
  470. inherited init;
  471. typ:=ait_label;
  472. l:=_l;
  473. l^.is_set:=true;
  474. end;
  475. destructor tai_label.done;
  476. begin
  477. if (l^.is_used) then
  478. l^.is_set:=false
  479. else
  480. dispose(l);
  481. inherited done;
  482. end;
  483. {****************************************************************************
  484. TAI_DIRECT
  485. ****************************************************************************}
  486. constructor tai_direct.init(_str : pchar);
  487. begin
  488. inherited init;
  489. typ:=ait_direct;
  490. str:=_str;
  491. end;
  492. destructor tai_direct.done;
  493. begin
  494. strdispose(str);
  495. inherited done;
  496. end;
  497. {****************************************************************************
  498. TAI_ASM_COMMENT 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. endname:=false;
  546. end;
  547. constructor tai_cut.init_end;
  548. begin
  549. inherited init;
  550. typ:=ait_cut;
  551. endname:=true;
  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 aktmoduleswitches) 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. function taasmoutput.getlasttaifilepos : pfileposinfo;
  680. begin
  681. if assigned(last) then
  682. getlasttaifilepos:=@pai(last)^.fileinfo
  683. else
  684. getlasttaifilepos:=nil;
  685. end;
  686. end.
  687. {
  688. $Log$
  689. Revision 1.18 1998-09-20 17:11:25 jonas
  690. * released REGALLOC
  691. Revision 1.17 1998/09/07 18:33:31 peter
  692. + smartlinking for win95 imports
  693. Revision 1.16 1998/09/03 17:08:37 pierre
  694. * better lines for stabs
  695. (no scroll back to if before else part
  696. no return to case line at jump outside case)
  697. + source lines also if not in order
  698. Revision 1.15 1998/08/11 15:31:36 peter
  699. * write extended to ppu file
  700. * new version 0.99.7
  701. Revision 1.14 1998/08/10 23:56:03 peter
  702. * fixed extended writing
  703. Revision 1.13 1998/08/10 14:49:33 peter
  704. + localswitches, moduleswitches, globalswitches splitting
  705. Revision 1.12 1998/07/14 14:46:36 peter
  706. * released NEWINPUT
  707. Revision 1.11 1998/07/07 11:19:50 peter
  708. + NEWINPUT for a better inputfile and scanner object
  709. Revision 1.10 1998/06/08 22:59:41 peter
  710. * smartlinking works for win32
  711. * some defines to exclude some compiler parts
  712. Revision 1.9 1998/06/04 23:51:26 peter
  713. * m68k compiles
  714. + .def file creation moved to gendef.pas so it could also be used
  715. for win32
  716. Revision 1.8 1998/05/23 01:20:53 peter
  717. + aktasmmode, aktoptprocessor, aktoutputformat
  718. + smartlink per module $SMARTLINK-/+ (like MMX) and moved to aktswitches
  719. + $LIBNAME to set the library name where the unit will be put in
  720. * splitted cgi386 a bit (codeseg to large for bp7)
  721. * nasm, tasm works again. nasm moved to ag386nsm.pas
  722. Revision 1.7 1998/05/07 00:16:59 peter
  723. * smartlinking for sets
  724. + consts labels are now concated/generated in hcodegen
  725. * moved some cpu code to cga and some none cpu depended code from cga
  726. to tree and hcodegen and cleanup of hcodegen
  727. * assembling .. output reduced for smartlinking ;)
  728. Revision 1.6 1998/05/06 18:36:53 peter
  729. * tai_section extended with code,data,bss sections and enumerated type
  730. * ident 'compiled by FPC' moved to pmodules
  731. * small fix for smartlink
  732. Revision 1.5 1998/05/01 07:43:52 florian
  733. + basics for rtti implemented
  734. + switch $m (generate rtti for published sections)
  735. Revision 1.4 1998/04/29 10:33:40 pierre
  736. + added some code for ansistring (not complete nor working yet)
  737. * corrected operator overloading
  738. * corrected nasm output
  739. + started inline procedures
  740. + added starstarn : use ** for exponentiation (^ gave problems)
  741. + started UseTokenInfo cond to get accurate positions
  742. Revision 1.3 1998/04/27 23:10:27 peter
  743. + new scanner
  744. * $makelib -> if smartlink
  745. * small filename fixes pmodule.setfilename
  746. * moved import from files.pas -> import.pas
  747. Revision 1.2 1998/04/09 15:46:37 florian
  748. + register allocation tracing stuff added
  749. }