aasm.pas 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917
  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. {$ifdef REGALLOC}
  62. ait_regalloc,
  63. ait_regdealloc,
  64. {$endif REGALLOC}
  65. { never used, makes insertation of new ait_ easier to type }
  66. ait_dummy);
  67. type
  68. { the short name makes typing easier }
  69. pai = ^tai;
  70. tai = object(tlinkedlist_item)
  71. typ : tait;
  72. fileinfo : tfileposinfo;
  73. constructor init;
  74. end;
  75. pai_string = ^tai_string;
  76. tai_string = object(tai)
  77. str : pchar;
  78. { extra len so the string can contain an \0 }
  79. len : longint;
  80. constructor init(const _str : string);
  81. constructor init_pchar(_str : pchar);
  82. constructor init_length_pchar(_str : pchar;length : longint);
  83. destructor done;virtual;
  84. end;
  85. { generates a common label }
  86. pai_symbol = ^tai_symbol;
  87. tai_symbol = object(tai)
  88. name : pchar;
  89. is_global : boolean;
  90. constructor init(const _name : string);
  91. constructor init_global(const _name : string);
  92. destructor done;virtual;
  93. end;
  94. { external types defined for TASM }
  95. { EXT_ANY for search purposes }
  96. texternal_typ = (EXT_ANY,EXT_NEAR, EXT_FAR, EXT_PROC, EXT_BYTE,
  97. EXT_WORD, EXT_DWORD, EXT_CODEPTR, EXT_DATAPTR,
  98. EXT_FWORD, EXT_PWORD, EXT_QWORD, EXT_TBYTE, EXT_ABS);
  99. { generates an symbol which is marked as external }
  100. pai_external = ^tai_external;
  101. tai_external = object(tai)
  102. name : pchar;
  103. exttyp : texternal_typ;
  104. constructor init(const _name : string;exttype : texternal_typ);
  105. destructor done; virtual;
  106. end;
  107. { type for a temporary label test if used for dispose of
  108. unnecessary labels }
  109. plabel = ^tlabel;
  110. tlabel = record
  111. nb : longint;
  112. is_data : boolean;
  113. is_used : boolean;
  114. is_set : boolean;
  115. refcount : word;
  116. end;
  117. pai_label = ^tai_label;
  118. tai_label = object(tai)
  119. l : plabel;
  120. constructor init(_l : plabel);
  121. destructor done; virtual;
  122. end;
  123. pai_direct = ^tai_direct;
  124. tai_direct = object(tai)
  125. str : pchar;
  126. constructor init(_str : pchar);
  127. destructor done; virtual;
  128. end;
  129. { to insert a comment into the generated assembler file }
  130. pai_asm_comment = ^tai_asm_comment;
  131. tai_asm_comment = object(tai)
  132. str : pchar;
  133. constructor init(_str : pchar);
  134. destructor done; virtual;
  135. end;
  136. { alignment for operator }
  137. pai_align = ^tai_align;
  138. tai_align = object(tai)
  139. aligntype: byte; { 1 = no align, 2 = word align, 4 = dword align }
  140. op: byte; { value to fill with - optional }
  141. constructor init(b:byte);
  142. constructor init_op(b: byte; use_op: byte);
  143. destructor done;virtual;
  144. end;
  145. tsection=(sec_none,sec_code,sec_data,sec_bss,sec_idata);
  146. { Insert a section/segment directive }
  147. pai_section = ^tai_section;
  148. tai_section = object(tai)
  149. sec : tsection;
  150. idataidx : longint;
  151. constructor init(s : tsection);
  152. constructor init_idata(i:longint);
  153. destructor done;virtual;
  154. end;
  155. { generates an uninitializised data block }
  156. pai_datablock = ^tai_datablock;
  157. tai_datablock = object(tai)
  158. size : longint;
  159. name : pchar;
  160. is_global : boolean;
  161. constructor init(const _name : string;_size : longint);
  162. constructor init_global(const _name : string;_size : longint);
  163. destructor done; virtual;
  164. end;
  165. { generates a long integer (32 bit) }
  166. pai_const = ^tai_const;
  167. tai_const = object(tai)
  168. value : longint;
  169. constructor init_32bit(_value : longint);
  170. constructor init_16bit(_value : word);
  171. constructor init_8bit(_value : byte);
  172. constructor init_symbol(p : pchar);
  173. constructor init_rva(p : pchar);
  174. destructor done;virtual;
  175. end;
  176. { generates a double (64 bit real) }
  177. pai_double = ^tai_double;
  178. tai_double = object(tai)
  179. value : double;
  180. constructor init(_value : double);
  181. end;
  182. { generates an comp (integer over 64 bits) }
  183. pai_comp = ^tai_comp;
  184. tai_comp = object(tai)
  185. value : bestreal;
  186. constructor init(_value : bestreal);
  187. { usefull for 64 bits apps, maybe later }
  188. constructor init_comp(_value : comp);
  189. end;
  190. { generates a single (32 bit real) }
  191. pai_single = ^tai_single;
  192. tai_single = object(tai)
  193. value : single;
  194. constructor init(_value : single);
  195. end;
  196. { generates an extended (80 bit real) }
  197. pai_extended = ^tai_extended;
  198. tai_extended = object(tai)
  199. value : bestreal;
  200. constructor init(_value : bestreal);
  201. end;
  202. { insert a cut to split into several smaller files }
  203. pai_cut = ^tai_cut;
  204. tai_cut = object(tai)
  205. constructor init;
  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
  499. comment to be inserted in the assembler file
  500. ****************************************************************************}
  501. constructor tai_asm_comment.init(_str : pchar);
  502. begin
  503. inherited init;
  504. typ:=ait_comment;
  505. str:=_str;
  506. end;
  507. destructor tai_asm_comment.done;
  508. begin
  509. strdispose(str);
  510. inherited done;
  511. end;
  512. {****************************************************************************
  513. TAI_ALIGN
  514. ****************************************************************************}
  515. constructor tai_align.init(b: byte);
  516. begin
  517. inherited init;
  518. typ:=ait_align;
  519. if b in [1,2,4,8,16] then
  520. aligntype := b
  521. else
  522. aligntype := 1;
  523. op:=0;
  524. end;
  525. constructor tai_align.init_op(b: byte; use_op: byte);
  526. begin
  527. inherited init;
  528. typ:=ait_align;
  529. if b in [1,2,4,8,16] then
  530. aligntype := b
  531. else
  532. aligntype := 1;
  533. op:=use_op;
  534. end;
  535. destructor tai_align.done;
  536. begin
  537. inherited done;
  538. end;
  539. {****************************************************************************
  540. TAI_CUT
  541. ****************************************************************************}
  542. constructor tai_cut.init;
  543. begin
  544. inherited init;
  545. typ:=ait_cut;
  546. end;
  547. {*****************************************************************************
  548. External Helpers
  549. *****************************************************************************}
  550. function search_assembler_symbol(pl : paasmoutput;const _name : string;exttype : texternal_typ) : pai_external;
  551. var
  552. p : pai;
  553. begin
  554. search_assembler_symbol:=nil;
  555. if pl=nil then
  556. internalerror(2001)
  557. else
  558. begin
  559. p:=pai(pl^.first);
  560. while (p<>nil) and
  561. (p<>pai(pl^.last)) do
  562. { if we get the same name with a different typ }
  563. { there is probably an error }
  564. if (p^.typ=ait_external) and
  565. ((exttype=EXT_ANY) or (pai_external(p)^.exttyp=exttype)) and
  566. (strpas(pai_external(p)^.name)=_name) then
  567. begin
  568. search_assembler_symbol:=pai_external(p);
  569. exit;
  570. end
  571. else
  572. p:=pai(p^.next);
  573. if (p<>nil) and
  574. (p^.typ=ait_external) and
  575. (pai_external(p)^.exttyp=exttype) and
  576. (strpas(pai_external(p)^.name)=_name) then
  577. begin
  578. search_assembler_symbol:=pai_external(p);
  579. exit;
  580. end;
  581. end;
  582. end;
  583. { insert each need external only once }
  584. procedure concat_external(const _name : string;exttype : texternal_typ);
  585. begin
  586. if not target_asm.externals then
  587. exit;
  588. if search_assembler_symbol(externals,_name,exttype)=nil then
  589. externals^.concat(new(pai_external,init(_name,exttype)));
  590. end;
  591. { insert each need internal only once }
  592. procedure concat_internal(const _name : string;exttype : texternal_typ);
  593. begin
  594. if not target_asm.externals then
  595. exit;
  596. if search_assembler_symbol(internals,_name,exttype)=nil then
  597. internals^.concat(new(pai_external,init(_name,exttype)));
  598. end;
  599. {*****************************************************************************
  600. Label Helpers
  601. *****************************************************************************}
  602. function lab2str(l : plabel) : string;
  603. begin
  604. if (l=nil) or (l^.nb=0) then
  605. begin
  606. {$ifdef EXTDEBUG}
  607. lab2str:='ILLEGAL'
  608. {$else EXTDEBUG}
  609. internalerror(2000);
  610. {$endif EXTDEBUG}
  611. end
  612. else
  613. begin
  614. if (l^.is_data) and (cs_smartlink in aktmoduleswitches) then
  615. lab2str:='_$'+current_module^.modulename^+'$_L'+tostr(l^.nb)
  616. else
  617. lab2str:=target_asm.labelprefix+tostr(l^.nb);
  618. end;
  619. inc(l^.refcount);
  620. l^.is_used:=true;
  621. end;
  622. procedure getlabel(var l : plabel);
  623. begin
  624. new(l);
  625. l^.nb:=nextlabelnr;
  626. l^.is_used:=false;
  627. l^.is_set:=false;
  628. l^.is_data:=false;
  629. l^.refcount:=0;
  630. inc(nextlabelnr);
  631. end;
  632. procedure getdatalabel(var l : plabel);
  633. begin
  634. new(l);
  635. l^.nb:=nextlabelnr;
  636. l^.is_used:=false;
  637. l^.is_set:=false;
  638. l^.is_data:=true;
  639. l^.refcount:=0;
  640. inc(nextlabelnr);
  641. end;
  642. procedure freelabel(var l : plabel);
  643. begin
  644. if (l<>nil) and (not l^.is_set) and (not l^.is_used) then
  645. dispose(l);
  646. l:=nil;
  647. end;
  648. procedure setzerolabel(var l : plabel);
  649. begin
  650. with l^ do
  651. begin
  652. nb:=0;
  653. is_used:=false;
  654. is_set:=false;
  655. is_data:=false;
  656. refcount:=0;
  657. end;
  658. end;
  659. procedure getzerolabel(var l : plabel);
  660. begin
  661. new(l);
  662. l^.nb:=0;
  663. l^.is_used:=false;
  664. l^.is_set:=false;
  665. l^.is_data:=false;
  666. l^.refcount:=0;
  667. end;
  668. procedure getlabelnr(var l : longint);
  669. begin
  670. l:=nextlabelnr;
  671. inc(nextlabelnr);
  672. end;
  673. function taasmoutput.getlasttaifilepos : pfileposinfo;
  674. begin
  675. if assigned(last) then
  676. getlasttaifilepos:=@pai(last)^.fileinfo
  677. else
  678. getlasttaifilepos:=nil;
  679. end;
  680. end.
  681. {
  682. $Log$
  683. Revision 1.16 1998-09-03 17:08:37 pierre
  684. * better lines for stabs
  685. (no scroll back to if before else part
  686. no return to case line at jump outside case)
  687. + source lines also if not in order
  688. Revision 1.15 1998/08/11 15:31:36 peter
  689. * write extended to ppu file
  690. * new version 0.99.7
  691. Revision 1.14 1998/08/10 23:56:03 peter
  692. * fixed extended writing
  693. Revision 1.13 1998/08/10 14:49:33 peter
  694. + localswitches, moduleswitches, globalswitches splitting
  695. Revision 1.12 1998/07/14 14:46:36 peter
  696. * released NEWINPUT
  697. Revision 1.11 1998/07/07 11:19:50 peter
  698. + NEWINPUT for a better inputfile and scanner object
  699. Revision 1.10 1998/06/08 22:59:41 peter
  700. * smartlinking works for win32
  701. * some defines to exclude some compiler parts
  702. Revision 1.9 1998/06/04 23:51:26 peter
  703. * m68k compiles
  704. + .def file creation moved to gendef.pas so it could also be used
  705. for win32
  706. Revision 1.8 1998/05/23 01:20:53 peter
  707. + aktasmmode, aktoptprocessor, aktoutputformat
  708. + smartlink per module $SMARTLINK-/+ (like MMX) and moved to aktswitches
  709. + $LIBNAME to set the library name where the unit will be put in
  710. * splitted cgi386 a bit (codeseg to large for bp7)
  711. * nasm, tasm works again. nasm moved to ag386nsm.pas
  712. Revision 1.7 1998/05/07 00:16:59 peter
  713. * smartlinking for sets
  714. + consts labels are now concated/generated in hcodegen
  715. * moved some cpu code to cga and some none cpu depended code from cga
  716. to tree and hcodegen and cleanup of hcodegen
  717. * assembling .. output reduced for smartlinking ;)
  718. Revision 1.6 1998/05/06 18:36:53 peter
  719. * tai_section extended with code,data,bss sections and enumerated type
  720. * ident 'compiled by FPC' moved to pmodules
  721. * small fix for smartlink
  722. Revision 1.5 1998/05/01 07:43:52 florian
  723. + basics for rtti implemented
  724. + switch $m (generate rtti for published sections)
  725. Revision 1.4 1998/04/29 10:33:40 pierre
  726. + added some code for ansistring (not complete nor working yet)
  727. * corrected operator overloading
  728. * corrected nasm output
  729. + started inline procedures
  730. + added starstarn : use ** for exponentiation (^ gave problems)
  731. + started UseTokenInfo cond to get accurate positions
  732. Revision 1.3 1998/04/27 23:10:27 peter
  733. + new scanner
  734. * $makelib -> if smartlink
  735. * small filename fixes pmodule.setfilename
  736. * moved import from files.pas -> import.pas
  737. Revision 1.2 1998/04/09 15:46:37 florian
  738. + register allocation tracing stuff added
  739. }