aasm.pas 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929
  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. endname : boolean;
  206. constructor init;
  207. constructor init_end;
  208. end;
  209. { for each processor define the best precision }
  210. { bestreal is defined in globals }
  211. {$ifdef i386}
  212. const
  213. ait_bestreal = ait_real_extended;
  214. type
  215. pai_bestreal = pai_extended;
  216. tai_bestreal = tai_extended;
  217. {$endif i386}
  218. {$ifdef m68k}
  219. const
  220. ait_bestreal = ait_real_32bit;
  221. type
  222. pai_bestreal = pai_single;
  223. tai_bestreal = tai_single;
  224. {$endif m68k}
  225. paasmoutput = ^taasmoutput;
  226. taasmoutput = object(tlinkedlist)
  227. function getlasttaifilepos : pfileposinfo;
  228. end;
  229. var
  230. { temporary lists }
  231. exprasmlist,
  232. { default lists }
  233. datasegment,codesegment,bsssegment,
  234. internals,externals,debuglist,consts,
  235. importssection,exportssection,
  236. resourcesection,rttilist : paasmoutput;
  237. { external symbols without repetition }
  238. function search_assembler_symbol(pl : paasmoutput;const _name : string;exttype : texternal_typ) : pai_external;
  239. procedure concat_external(const _name : string;exttype : texternal_typ);
  240. procedure concat_internal(const _name : string;exttype : texternal_typ);
  241. { label functions }
  242. const
  243. nextlabelnr : longint = 1;
  244. { convert label to string}
  245. function lab2str(l : plabel) : string;
  246. { make l as a new label }
  247. procedure getlabel(var l : plabel);
  248. { make l as a new label and flag is_data }
  249. procedure getdatalabel(var l : plabel);
  250. { frees the label if unused }
  251. procedure freelabel(var l : plabel);
  252. { make a new zero label }
  253. procedure getzerolabel(var l : plabel);
  254. { reset a label to a zero label }
  255. procedure setzerolabel(var l : plabel);
  256. {just get a label number }
  257. procedure getlabelnr(var l : longint);
  258. implementation
  259. uses
  260. strings,verbose,systems;
  261. {****************************************************************************
  262. TAI
  263. ****************************************************************************}
  264. constructor tai.init;
  265. begin
  266. fileinfo:=aktfilepos;
  267. end;
  268. {****************************************************************************
  269. TAI_SECTION
  270. ****************************************************************************}
  271. constructor tai_section.init(s : tsection);
  272. begin
  273. inherited init;
  274. typ:=ait_section;
  275. sec:=s;
  276. idataidx:=0;
  277. end;
  278. constructor tai_section.init_idata(i:longint);
  279. begin
  280. inherited init;
  281. typ:=ait_section;
  282. sec:=sec_idata;
  283. idataidx:=i;
  284. end;
  285. destructor tai_section.done;
  286. begin
  287. inherited done;
  288. end;
  289. {****************************************************************************
  290. TAI_DATABLOCK
  291. ****************************************************************************}
  292. constructor tai_datablock.init(const _name : string;_size : longint);
  293. begin
  294. inherited init;
  295. typ:=ait_datablock;
  296. name:=strpnew(_name);
  297. concat_internal(_name,EXT_ANY);
  298. size:=_size;
  299. is_global:=false;
  300. end;
  301. constructor tai_datablock.init_global(const _name : string;_size : longint);
  302. begin
  303. inherited init;
  304. typ:=ait_datablock;
  305. name:=strpnew(_name);
  306. concat_internal(_name,EXT_ANY);
  307. size:=_size;
  308. is_global:=true;
  309. end;
  310. destructor tai_datablock.done;
  311. begin
  312. strdispose(name);
  313. inherited done;
  314. end;
  315. {****************************************************************************
  316. TAI_SYMBOL
  317. ****************************************************************************}
  318. constructor tai_symbol.init(const _name : string);
  319. begin
  320. inherited init;
  321. typ:=ait_symbol;
  322. name:=strpnew(_name);
  323. concat_internal(_name,EXT_ANY);
  324. is_global:=false;
  325. end;
  326. constructor tai_symbol.init_global(const _name : string);
  327. begin
  328. inherited init;
  329. typ:=ait_symbol;
  330. name:=strpnew(_name);
  331. concat_internal(_name,EXT_ANY);
  332. is_global:=true;
  333. end;
  334. destructor tai_symbol.done;
  335. begin
  336. strdispose(name);
  337. inherited done;
  338. end;
  339. {****************************************************************************
  340. TAI_EXTERNAL
  341. ****************************************************************************}
  342. constructor tai_external.init(const _name : string;exttype : texternal_typ);
  343. begin
  344. inherited init;
  345. typ:=ait_external;
  346. exttyp:=exttype;
  347. name:=strpnew(_name);
  348. end;
  349. destructor tai_external.done;
  350. begin
  351. strdispose(name);
  352. inherited done;
  353. end;
  354. {****************************************************************************
  355. TAI_CONST
  356. ****************************************************************************}
  357. constructor tai_const.init_32bit(_value : longint);
  358. begin
  359. inherited init;
  360. typ:=ait_const_32bit;
  361. value:=_value;
  362. end;
  363. constructor tai_const.init_16bit(_value : word);
  364. begin
  365. inherited init;
  366. typ:=ait_const_16bit;
  367. value:=_value;
  368. end;
  369. constructor tai_const.init_8bit(_value : byte);
  370. begin
  371. inherited init;
  372. typ:=ait_const_8bit;
  373. value:=_value;
  374. end;
  375. constructor tai_const.init_symbol(p : pchar);
  376. begin
  377. inherited init;
  378. typ:=ait_const_symbol;
  379. value:=longint(p);
  380. end;
  381. constructor tai_const.init_rva(p : pchar);
  382. begin
  383. inherited init;
  384. typ:=ait_const_rva;
  385. value:=longint(p);
  386. end;
  387. destructor tai_const.done;
  388. begin
  389. if typ=ait_const_symbol then
  390. strdispose(pchar(value));
  391. inherited done;
  392. end;
  393. {****************************************************************************
  394. TAI_DOUBLE
  395. ****************************************************************************}
  396. constructor tai_double.init(_value : double);
  397. begin
  398. inherited init;
  399. typ:=ait_real_64bit;
  400. value:=_value;
  401. end;
  402. {****************************************************************************
  403. TAI_SINGLE
  404. ****************************************************************************}
  405. constructor tai_single.init(_value : single);
  406. begin
  407. inherited init;
  408. typ:=ait_real_32bit;
  409. value:=_value;
  410. end;
  411. {****************************************************************************
  412. TAI_EXTENDED
  413. ****************************************************************************}
  414. constructor tai_extended.init(_value : bestreal);
  415. begin
  416. inherited init;
  417. typ:=ait_real_extended;
  418. value:=_value;
  419. end;
  420. {****************************************************************************
  421. TAI_COMP
  422. ****************************************************************************}
  423. constructor tai_comp.init(_value : bestreal);
  424. begin
  425. inherited init;
  426. typ:=ait_comp;
  427. value:=_value;
  428. end;
  429. constructor tai_comp.init_comp(_value : comp);
  430. begin
  431. inherited init;
  432. typ:=ait_comp;
  433. value:=_value;
  434. end;
  435. {****************************************************************************
  436. TAI_STRING
  437. ****************************************************************************}
  438. constructor tai_string.init(const _str : string);
  439. begin
  440. inherited init;
  441. typ:=ait_string;
  442. getmem(str,length(_str)+1);
  443. strpcopy(str,_str);
  444. len:=length(_str);
  445. end;
  446. constructor tai_string.init_pchar(_str : pchar);
  447. begin
  448. inherited init;
  449. typ:=ait_string;
  450. str:=_str;
  451. len:=strlen(_str);
  452. end;
  453. constructor tai_string.init_length_pchar(_str : pchar;length : longint);
  454. begin
  455. inherited init;
  456. typ:=ait_string;
  457. str:=_str;
  458. len:=length;
  459. end;
  460. destructor tai_string.done;
  461. begin
  462. { you can have #0 inside the strings so }
  463. if str<>nil then
  464. freemem(str,len+1);
  465. inherited done;
  466. end;
  467. {****************************************************************************
  468. TAI_LABEL
  469. ****************************************************************************}
  470. constructor tai_label.init(_l : plabel);
  471. begin
  472. inherited init;
  473. typ:=ait_label;
  474. l:=_l;
  475. l^.is_set:=true;
  476. end;
  477. destructor tai_label.done;
  478. begin
  479. if (l^.is_used) then
  480. l^.is_set:=false
  481. else
  482. dispose(l);
  483. inherited done;
  484. end;
  485. {****************************************************************************
  486. TAI_DIRECT
  487. ****************************************************************************}
  488. constructor tai_direct.init(_str : pchar);
  489. begin
  490. inherited init;
  491. typ:=ait_direct;
  492. str:=_str;
  493. end;
  494. destructor tai_direct.done;
  495. begin
  496. strdispose(str);
  497. inherited done;
  498. end;
  499. {****************************************************************************
  500. TAI_ASM_COMMENT comment to be inserted in the assembler file
  501. ****************************************************************************}
  502. constructor tai_asm_comment.init(_str : pchar);
  503. begin
  504. inherited init;
  505. typ:=ait_comment;
  506. str:=_str;
  507. end;
  508. destructor tai_asm_comment.done;
  509. begin
  510. strdispose(str);
  511. inherited done;
  512. end;
  513. {****************************************************************************
  514. TAI_ALIGN
  515. ****************************************************************************}
  516. constructor tai_align.init(b: byte);
  517. begin
  518. inherited init;
  519. typ:=ait_align;
  520. if b in [1,2,4,8,16] then
  521. aligntype := b
  522. else
  523. aligntype := 1;
  524. op:=0;
  525. end;
  526. constructor tai_align.init_op(b: byte; use_op: byte);
  527. begin
  528. inherited init;
  529. typ:=ait_align;
  530. if b in [1,2,4,8,16] then
  531. aligntype := b
  532. else
  533. aligntype := 1;
  534. op:=use_op;
  535. end;
  536. destructor tai_align.done;
  537. begin
  538. inherited done;
  539. end;
  540. {****************************************************************************
  541. TAI_CUT
  542. ****************************************************************************}
  543. constructor tai_cut.init;
  544. begin
  545. inherited init;
  546. typ:=ait_cut;
  547. endname:=false;
  548. end;
  549. constructor tai_cut.init_end;
  550. begin
  551. inherited init;
  552. typ:=ait_cut;
  553. endname:=true;
  554. end;
  555. {*****************************************************************************
  556. External Helpers
  557. *****************************************************************************}
  558. function search_assembler_symbol(pl : paasmoutput;const _name : string;exttype : texternal_typ) : pai_external;
  559. var
  560. p : pai;
  561. begin
  562. search_assembler_symbol:=nil;
  563. if pl=nil then
  564. internalerror(2001)
  565. else
  566. begin
  567. p:=pai(pl^.first);
  568. while (p<>nil) and
  569. (p<>pai(pl^.last)) do
  570. { if we get the same name with a different typ }
  571. { there is probably an error }
  572. if (p^.typ=ait_external) and
  573. ((exttype=EXT_ANY) or (pai_external(p)^.exttyp=exttype)) and
  574. (strpas(pai_external(p)^.name)=_name) then
  575. begin
  576. search_assembler_symbol:=pai_external(p);
  577. exit;
  578. end
  579. else
  580. p:=pai(p^.next);
  581. if (p<>nil) and
  582. (p^.typ=ait_external) and
  583. (pai_external(p)^.exttyp=exttype) and
  584. (strpas(pai_external(p)^.name)=_name) then
  585. begin
  586. search_assembler_symbol:=pai_external(p);
  587. exit;
  588. end;
  589. end;
  590. end;
  591. { insert each need external only once }
  592. procedure concat_external(const _name : string;exttype : texternal_typ);
  593. begin
  594. if not target_asm.externals then
  595. exit;
  596. if search_assembler_symbol(externals,_name,exttype)=nil then
  597. externals^.concat(new(pai_external,init(_name,exttype)));
  598. end;
  599. { insert each need internal only once }
  600. procedure concat_internal(const _name : string;exttype : texternal_typ);
  601. begin
  602. if not target_asm.externals then
  603. exit;
  604. if search_assembler_symbol(internals,_name,exttype)=nil then
  605. internals^.concat(new(pai_external,init(_name,exttype)));
  606. end;
  607. {*****************************************************************************
  608. Label Helpers
  609. *****************************************************************************}
  610. function lab2str(l : plabel) : string;
  611. begin
  612. if (l=nil) or (l^.nb=0) then
  613. begin
  614. {$ifdef EXTDEBUG}
  615. lab2str:='ILLEGAL'
  616. {$else EXTDEBUG}
  617. internalerror(2000);
  618. {$endif EXTDEBUG}
  619. end
  620. else
  621. begin
  622. if (l^.is_data) and (cs_smartlink in aktmoduleswitches) then
  623. lab2str:='_$'+current_module^.modulename^+'$_L'+tostr(l^.nb)
  624. else
  625. lab2str:=target_asm.labelprefix+tostr(l^.nb);
  626. end;
  627. inc(l^.refcount);
  628. l^.is_used:=true;
  629. end;
  630. procedure getlabel(var l : plabel);
  631. begin
  632. new(l);
  633. l^.nb:=nextlabelnr;
  634. l^.is_used:=false;
  635. l^.is_set:=false;
  636. l^.is_data:=false;
  637. l^.refcount:=0;
  638. inc(nextlabelnr);
  639. end;
  640. procedure getdatalabel(var l : plabel);
  641. begin
  642. new(l);
  643. l^.nb:=nextlabelnr;
  644. l^.is_used:=false;
  645. l^.is_set:=false;
  646. l^.is_data:=true;
  647. l^.refcount:=0;
  648. inc(nextlabelnr);
  649. end;
  650. procedure freelabel(var l : plabel);
  651. begin
  652. if (l<>nil) and (not l^.is_set) and (not l^.is_used) then
  653. dispose(l);
  654. l:=nil;
  655. end;
  656. procedure setzerolabel(var l : plabel);
  657. begin
  658. with l^ do
  659. begin
  660. nb:=0;
  661. is_used:=false;
  662. is_set:=false;
  663. is_data:=false;
  664. refcount:=0;
  665. end;
  666. end;
  667. procedure getzerolabel(var l : plabel);
  668. begin
  669. new(l);
  670. l^.nb:=0;
  671. l^.is_used:=false;
  672. l^.is_set:=false;
  673. l^.is_data:=false;
  674. l^.refcount:=0;
  675. end;
  676. procedure getlabelnr(var l : longint);
  677. begin
  678. l:=nextlabelnr;
  679. inc(nextlabelnr);
  680. end;
  681. function taasmoutput.getlasttaifilepos : pfileposinfo;
  682. begin
  683. if assigned(last) then
  684. getlasttaifilepos:=@pai(last)^.fileinfo
  685. else
  686. getlasttaifilepos:=nil;
  687. end;
  688. end.
  689. {
  690. $Log$
  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. }