aasm.pas 26 KB

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