tgeni386.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. {
  2. $Id$
  3. Copyright (C) 1998-2000 by Florian Klaempfl
  4. This unit handles the temporary variables stuff for i386
  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 tgeni386;
  19. interface
  20. uses
  21. cobjects,globals,tree,hcodegen,verbose,files,aasm,
  22. cpubase,cpuasm
  23. ;
  24. type
  25. tregisterset = set of tregister;
  26. tpushed = array[R_EAX..R_MM6] of boolean;
  27. tsaved = array[R_EAX..R_MM6] of longint;
  28. const
  29. usablereg32 : byte = 4;
  30. { this value is used in tsaved, if the register isn't saved }
  31. reg_not_saved = $7fffffff;
  32. {$ifdef SUPPORT_MMX}
  33. usableregmmx : byte = 8;
  34. {$endif SUPPORT_MMX}
  35. {$ifdef TEMPREGDEBUG}
  36. procedure testregisters32;
  37. {$endif TEMPREGDEBUG}
  38. function getregister32 : tregister;
  39. procedure ungetregister32(r : tregister);
  40. { tries to allocate the passed register, if possible }
  41. function getexplicitregister32(r : tregister) : tregister;
  42. {$ifdef SUPPORT_MMX}
  43. function getregistermmx : tregister;
  44. procedure ungetregistermmx(r : tregister);
  45. {$endif SUPPORT_MMX}
  46. procedure ungetregister(r : tregister);
  47. procedure cleartempgen;
  48. procedure del_reference(const ref : treference);
  49. procedure del_locref(const location : tlocation);
  50. procedure del_location(const l : tlocation);
  51. { pushs and restores registers }
  52. procedure pushusedregisters(var pushed : tpushed;b : byte);
  53. procedure popusedregisters(const pushed : tpushed);
  54. { saves and restores used registers to temp. values }
  55. procedure saveusedregisters(var saved : tsaved;b : byte);
  56. procedure restoreusedregisters(const saved : tsaved);
  57. procedure clearregistercount;
  58. procedure resetusableregisters;
  59. { corrects the fpu stack register by ofs }
  60. function correct_fpuregister(r : tregister;ofs : byte) : tregister;
  61. var
  62. unused,usableregs : tregisterset;
  63. c_usableregs : longint;
  64. { uses only 1 byte while a set uses in FPC 32 bytes }
  65. usedinproc : byte;
  66. fpuvaroffset : byte;
  67. { count, how much a register must be pushed if it is used as register }
  68. { variable }
  69. {$ifdef SUPPORT_MMX}
  70. reg_pushes : array[R_EAX..R_MM6] of longint;
  71. is_reg_var : array[R_EAX..R_MM6] of boolean;
  72. {$ifdef TEMPREGDEBUG}
  73. reg_user : array[R_EAX..R_MM6] of ptree;
  74. reg_releaser : array[R_EAX..R_MM6] of ptree;
  75. {$endif TEMPREGDEBUG}
  76. {$else SUPPORT_MMX}
  77. reg_pushes : array[R_EAX..R_EDI] of longint;
  78. is_reg_var : array[R_EAX..R_EDI] of boolean;
  79. {$ifdef TEMPREGDEBUG}
  80. reg_user : array[R_EAX..R_EDI] of ptree;
  81. reg_releaser : array[R_EAX..R_EDI] of ptree;
  82. {$endif TEMPREGDEBUG}
  83. {$endif SUPPORT_MMX}
  84. implementation
  85. uses
  86. globtype,temp_gen;
  87. procedure pushusedregisters(var pushed : tpushed;b : byte);
  88. var
  89. r : tregister;
  90. {$ifdef SUPPORT_MMX}
  91. hr : preference;
  92. {$endif}
  93. begin
  94. usedinproc:=usedinproc or b;
  95. for r:=R_EAX to R_EBX do
  96. begin
  97. pushed[r]:=false;
  98. { if the register is used by the calling subroutine }
  99. if ((b and ($80 shr byte(r)))<>0) then
  100. begin
  101. { and is present in use }
  102. if not(r in unused) then
  103. begin
  104. { then save it }
  105. exprasmlist^.concat(new(paicpu,op_reg(A_PUSH,S_L,r)));
  106. { here was a big problem !!!!!}
  107. { you cannot do that for a register that is
  108. globally assigned to a var
  109. this also means that you must push it much more
  110. often, but there must be a better way
  111. maybe by putting the value back to the stack !! }
  112. if not(is_reg_var[r]) then
  113. begin
  114. unused:=unused+[r];
  115. {$ifdef TEMPREGDEBUG}
  116. inc(usablereg32);
  117. {$endif TEMPREGDEBUG}
  118. end;
  119. pushed[r]:=true;
  120. end;
  121. end;
  122. end;
  123. {$ifdef SUPPORT_MMX}
  124. for r:=R_MM0 to R_MM6 do
  125. begin
  126. pushed[r]:=false;
  127. { if the mmx register is in use, save it }
  128. if not(r in unused) then
  129. begin
  130. exprasmlist^.concat(new(paicpu,op_const_reg(
  131. A_SUB,S_L,8,R_ESP)));
  132. new(hr);
  133. reset_reference(hr^);
  134. hr^.base:=R_ESP;
  135. exprasmlist^.concat(new(paicpu,op_reg_ref(
  136. A_MOVQ,S_NO,r,hr)));
  137. if not(is_reg_var[r]) then
  138. begin
  139. unused:=unused+[r];
  140. {$ifdef TEMPREGDEBUG}
  141. inc(usableregmmx);
  142. {$endif TEMPREGDEBUG}
  143. end;
  144. pushed[r]:=true;
  145. end;
  146. end;
  147. {$endif SUPPORT_MMX}
  148. {$ifdef TEMPREGDEBUG}
  149. testregisters32;
  150. {$endif TEMPREGDEBUG}
  151. end;
  152. procedure saveusedregisters(var saved : tsaved;b : byte);
  153. var
  154. r : tregister;
  155. hr : treference;
  156. begin
  157. usedinproc:=usedinproc or b;
  158. for r:=R_EAX to R_EBX do
  159. begin
  160. saved[r]:=reg_not_saved;
  161. { if the register is used by the calling subroutine }
  162. if ((b and ($80 shr byte(r)))<>0) then
  163. begin
  164. { and is present in use }
  165. if not(r in unused) then
  166. begin
  167. { then save it }
  168. gettempofsizereference(4,hr);
  169. saved[r]:=hr.offset;
  170. exprasmlist^.concat(new(paicpu,op_reg_ref(A_MOV,S_L,r,newreference(hr))));
  171. { here was a big problem !!!!!}
  172. { you cannot do that for a register that is
  173. globally assigned to a var
  174. this also means that you must push it much more
  175. often, but there must be a better way
  176. maybe by putting the value back to the stack !! }
  177. if not(is_reg_var[r]) then
  178. begin
  179. unused:=unused+[r];
  180. {$ifdef TEMPREGDEBUG}
  181. inc(usablereg32);
  182. {$endif TEMPREGDEBUG}
  183. end;
  184. end;
  185. end;
  186. end;
  187. {$ifdef SUPPORT_MMX}
  188. for r:=R_MM0 to R_MM6 do
  189. begin
  190. saved[r]:=reg_not_saved;
  191. { if the mmx register is in use, save it }
  192. if not(r in unused) then
  193. begin
  194. gettempofsizereference(8,hr);
  195. exprasmlist^.concat(new(paicpu,op_reg_ref(
  196. A_MOVQ,S_NO,r,newreference(hr))));
  197. if not(is_reg_var[r]) then
  198. begin
  199. unused:=unused+[r];
  200. {$ifdef TEMPREGDEBUG}
  201. inc(usableregmmx);
  202. {$endif TEMPREGDEBUG}
  203. end;
  204. saved[r]:=hr.offset;
  205. end;
  206. end;
  207. {$endif SUPPORT_MMX}
  208. {$ifdef TEMPREGDEBUG}
  209. testregisters32;
  210. {$endif TEMPREGDEBUG}
  211. end;
  212. procedure popusedregisters(const pushed : tpushed);
  213. var
  214. r : tregister;
  215. {$ifdef SUPPORT_MMX}
  216. hr : preference;
  217. {$endif SUPPORT_MMX}
  218. begin
  219. { restore in reverse order: }
  220. {$ifdef SUPPORT_MMX}
  221. for r:=R_MM6 downto R_MM0 do
  222. begin
  223. if pushed[r] then
  224. begin
  225. new(hr);
  226. reset_reference(hr^);
  227. hr^.base:=R_ESP;
  228. exprasmlist^.concat(new(paicpu,op_ref_reg(
  229. A_MOVQ,S_NO,hr,r)));
  230. exprasmlist^.concat(new(paicpu,op_const_reg(
  231. A_ADD,S_L,8,R_ESP)));
  232. unused:=unused-[r];
  233. {$ifdef TEMPREGDEBUG}
  234. dec(usableregmmx);
  235. {$endif TEMPREGDEBUG}
  236. end;
  237. end;
  238. {$endif SUPPORT_MMX}
  239. for r:=R_EBX downto R_EAX do
  240. if pushed[r] then
  241. begin
  242. exprasmlist^.concat(new(paicpu,op_reg(A_POP,S_L,r)));
  243. {$ifdef TEMPREGDEBUG}
  244. if not (r in unused) then
  245. { internalerror(10)
  246. in cg386cal we always restore regs
  247. that appear as used
  248. due to a unused tmep storage PM }
  249. else
  250. dec(usablereg32);
  251. {$endif TEMPREGDEBUG}
  252. unused:=unused-[r];
  253. end;
  254. {$ifdef TEMPREGDEBUG}
  255. testregisters32;
  256. {$endif TEMPREGDEBUG}
  257. end;
  258. procedure restoreusedregisters(const saved : tsaved);
  259. var
  260. r : tregister;
  261. hr : treference;
  262. begin
  263. { restore in reverse order: }
  264. {$ifdef SUPPORT_MMX}
  265. for r:=R_MM6 downto R_MM0 do
  266. begin
  267. if saved[r]<>reg_not_saved then
  268. begin
  269. reset_reference(hr);
  270. hr.base:=frame_pointer;
  271. hr.offset:=saved[r];
  272. exprasmlist^.concat(new(paicpu,op_ref_reg(
  273. A_MOVQ,S_NO,newreference(hr),r)));
  274. unused:=unused-[r];
  275. {$ifdef TEMPREGDEBUG}
  276. dec(usableregmmx);
  277. {$endif TEMPREGDEBUG}
  278. ungetiftemp(hr);
  279. end;
  280. end;
  281. {$endif SUPPORT_MMX}
  282. for r:=R_EBX downto R_EAX do
  283. if saved[r]<>reg_not_saved then
  284. begin
  285. reset_reference(hr);
  286. hr.base:=frame_pointer;
  287. hr.offset:=saved[r];
  288. exprasmlist^.concat(new(paicpu,op_ref_reg(A_MOV,S_L,newreference(hr),r)));
  289. {$ifdef TEMPREGDEBUG}
  290. if not (r in unused) then
  291. internalerror(10)
  292. else
  293. dec(usablereg32);
  294. {$endif TEMPREGDEBUG}
  295. unused:=unused-[r];
  296. ungetiftemp(hr);
  297. end;
  298. {$ifdef TEMPREGDEBUG}
  299. testregisters32;
  300. {$endif TEMPREGDEBUG}
  301. end;
  302. procedure ungetregister(r : tregister);
  303. begin
  304. if r in [R_EAX,R_ECX,R_EDX,R_EBX,R_ESP,R_EBP,R_ESI,R_EDI] then
  305. ungetregister32(r)
  306. else if r in [R_AX,R_CX,R_DX,R_BX,R_SP,R_BP,R_SI,R_DI] then
  307. ungetregister32(reg16toreg32(r))
  308. else if r in [R_AL,R_BL,R_CL,R_DL] then
  309. ungetregister32(reg8toreg32(r))
  310. {$ifdef SUPPORT_MMX}
  311. else if r in [R_MM0..R_MM6] then
  312. ungetregistermmx(r)
  313. {$endif SUPPORT_MMX}
  314. else internalerror(18);
  315. end;
  316. procedure ungetregister32(r : tregister);
  317. begin
  318. if cs_regalloc in aktglobalswitches then
  319. begin
  320. { takes much time }
  321. if not(r in usableregs) then
  322. exit;
  323. unused:=unused+[r];
  324. inc(usablereg32);
  325. end
  326. else
  327. begin
  328. if not(r in [R_EAX,R_EBX,R_ECX,R_EDX]) then
  329. exit;
  330. {$ifdef TEMPREGDEBUG}
  331. if (r in unused) then
  332. {$ifdef EXTTEMPREGDEBUG}
  333. begin
  334. Comment(V_Debug,'register freed twice '+reg2str(r));
  335. testregisters32;
  336. exit;
  337. end
  338. {$else EXTTEMPREGDEBUG}
  339. exit
  340. {$endif EXTTEMPREGDEBUG}
  341. else
  342. {$endif TEMPREGDEBUG}
  343. inc(usablereg32);
  344. unused:=unused+[r];
  345. {$ifdef TEMPREGDEBUG}
  346. reg_releaser[r]:=curptree^;
  347. {$endif TEMPREGDEBUG}
  348. end;
  349. exprasmlist^.concat(new(pairegalloc,dealloc(r)));
  350. {$ifdef TEMPREGDEBUG}
  351. testregisters32;
  352. {$endif TEMPREGDEBUG}
  353. end;
  354. {$ifdef SUPPORT_MMX}
  355. function getregistermmx : tregister;
  356. var
  357. r : tregister;
  358. begin
  359. dec(usableregmmx);
  360. for r:=R_MM0 to R_MM6 do
  361. if r in unused then
  362. begin
  363. unused:=unused-[r];
  364. usedinproc:=usedinproc or ($80 shr byte(R_EAX));
  365. getregistermmx:=r;
  366. exit;
  367. end;
  368. internalerror(10);
  369. end;
  370. procedure ungetregistermmx(r : tregister);
  371. begin
  372. if cs_regalloc in aktglobalswitches then
  373. begin
  374. { takes much time }
  375. if not(r in usableregs) then
  376. exit;
  377. unused:=unused+[r];
  378. inc(usableregmmx);
  379. end
  380. else
  381. begin
  382. unused:=unused+[r];
  383. inc(usableregmmx);
  384. end;
  385. end;
  386. {$endif SUPPORT_MMX}
  387. procedure del_reference(const ref : treference);
  388. begin
  389. if ref.is_immediate then
  390. exit;
  391. ungetregister32(ref.base);
  392. ungetregister32(ref.index);
  393. end;
  394. procedure del_locref(const location : tlocation);
  395. begin
  396. if (location.loc<>loc_mem) and (location.loc<>loc_reference) then
  397. exit;
  398. if location.reference.is_immediate then
  399. exit;
  400. ungetregister32(location.reference.base);
  401. ungetregister32(location.reference.index);
  402. end;
  403. procedure del_location(const l : tlocation);
  404. begin
  405. case l.loc of
  406. LOC_REGISTER :
  407. ungetregister(l.register);
  408. LOC_MEM,LOC_REFERENCE :
  409. del_reference(l.reference);
  410. end;
  411. end;
  412. {$ifdef TEMPREGDEBUG}
  413. procedure testregisters32;
  414. var test : byte;
  415. begin
  416. test:=0;
  417. if R_EAX in unused then
  418. inc(test);
  419. if R_EBX in unused then
  420. inc(test);
  421. if R_ECX in unused then
  422. inc(test);
  423. if R_EDX in unused then
  424. inc(test);
  425. if test<>usablereg32 then
  426. internalerror(10);
  427. end;
  428. {$endif TEMPREGDEBUG}
  429. function getregister32 : tregister;
  430. begin
  431. if usablereg32=0 then
  432. internalerror(10);
  433. dec(usablereg32);
  434. {$ifdef TEMPREGDEBUG}
  435. if curptree^^.usableregs-usablereg32>curptree^^.registers32 then
  436. internalerror(10);
  437. {$endif TEMPREGDEBUG}
  438. {$ifdef EXTTEMPREGDEBUG}
  439. if curptree^^.usableregs-usablereg32>curptree^^.reallyusedregs then
  440. curptree^^.reallyusedregs:=curptree^^.usableregs-usablereg32;
  441. {$endif EXTTEMPREGDEBUG}
  442. if R_EAX in unused then
  443. begin
  444. unused:=unused-[R_EAX];
  445. usedinproc:=usedinproc or ($80 shr byte(R_EAX));
  446. getregister32:=R_EAX;
  447. {$ifdef TEMPREGDEBUG}
  448. reg_user[R_EAX]:=curptree^;
  449. {$endif TEMPREGDEBUG}
  450. exprasmlist^.concat(new(pairegalloc,alloc(R_EAX)));
  451. end
  452. else if R_EDX in unused then
  453. begin
  454. unused:=unused-[R_EDX];
  455. usedinproc:=usedinproc or ($80 shr byte(R_EDX));
  456. getregister32:=R_EDX;
  457. {$ifdef TEMPREGDEBUG}
  458. reg_user[R_EDX]:=curptree^;
  459. {$endif TEMPREGDEBUG}
  460. exprasmlist^.concat(new(pairegalloc,alloc(R_EDX)));
  461. end
  462. else if R_EBX in unused then
  463. begin
  464. unused:=unused-[R_EBX];
  465. usedinproc:=usedinproc or ($80 shr byte(R_EBX));
  466. getregister32:=R_EBX;
  467. {$ifdef TEMPREGDEBUG}
  468. reg_user[R_EBX]:=curptree^;
  469. {$endif TEMPREGDEBUG}
  470. exprasmlist^.concat(new(pairegalloc,alloc(R_EBX)));
  471. end
  472. else if R_ECX in unused then
  473. begin
  474. unused:=unused-[R_ECX];
  475. usedinproc:=usedinproc or ($80 shr byte(R_ECX));
  476. getregister32:=R_ECX;
  477. {$ifdef TEMPREGDEBUG}
  478. reg_user[R_ECX]:=curptree^;
  479. {$endif TEMPREGDEBUG}
  480. exprasmlist^.concat(new(pairegalloc,alloc(R_ECX)));
  481. end
  482. else internalerror(10);
  483. {$ifdef TEMPREGDEBUG}
  484. testregisters32;
  485. {$endif TEMPREGDEBUG}
  486. end;
  487. function getexplicitregister32(r : tregister) : tregister;
  488. begin
  489. if r in unused then
  490. begin
  491. dec(usablereg32);
  492. {$ifdef TEMPREGDEBUG}
  493. if curptree^^.usableregs-usablereg32>curptree^^.registers32 then
  494. internalerror(10);
  495. reg_user[r]:=curptree^;
  496. {$endif TEMPREGDEBUG}
  497. unused:=unused-[r];
  498. usedinproc:=usedinproc or ($80 shr byte(r));
  499. exprasmlist^.concat(new(pairegalloc,alloc(r)));
  500. getexplicitregister32:=r;
  501. {$ifdef TEMPREGDEBUG}
  502. testregisters32;
  503. {$endif TEMPREGDEBUG}
  504. end
  505. else
  506. getexplicitregister32:=getregister32;
  507. end;
  508. procedure cleartempgen;
  509. begin
  510. unused:=usableregs;
  511. usablereg32:=c_usableregs;
  512. {fpuvaroffset:=0;
  513. this must only be resetted at each procedure
  514. compilation start PM }
  515. end;
  516. procedure clearregistercount;
  517. var
  518. regi : tregister;
  519. begin
  520. {$ifdef SUPPORT_MMX}
  521. for regi:=R_EAX to R_MM6 do
  522. begin
  523. reg_pushes[regi]:=0;
  524. is_reg_var[regi]:=false;
  525. end;
  526. {$else SUPPORT_MMX}
  527. for regi:=R_EAX to R_EDI do
  528. begin
  529. reg_pushes[regi]:=0;
  530. is_reg_var[regi]:=false;
  531. end;
  532. {$endif SUPPORT_MMX}
  533. end;
  534. function correct_fpuregister(r : tregister;ofs : byte) : tregister;
  535. begin
  536. correct_fpuregister:=tregister(longint(r)+ofs);
  537. end;
  538. procedure resetusableregisters;
  539. begin
  540. {$ifdef SUPPORT_MMX}
  541. usableregs:=[R_EAX,R_EBX,R_ECX,R_EDX,R_MM0..R_MM6];
  542. c_usableregs:=4;
  543. usableregmmx:=8;
  544. {$else}
  545. usableregs:=[R_EAX,R_EBX,R_ECX,R_EDX];
  546. c_usableregs:=4;
  547. {$endif SUPPORT_MMX}
  548. fpuvaroffset:=0;
  549. end;
  550. begin
  551. resetusableregisters;
  552. end.
  553. {
  554. $Log$
  555. Revision 1.37 2000-01-07 01:14:47 peter
  556. * updated copyright to 2000
  557. Revision 1.36 1999/11/06 14:34:31 peter
  558. * truncated log to 20 revs
  559. Revision 1.35 1999/09/27 23:45:02 peter
  560. * procinfo is now a pointer
  561. * support for result setting in sub procedure
  562. Revision 1.34 1999/08/27 10:38:32 pierre
  563. + EXTTEMPREGDEBUG code added
  564. Revision 1.33 1999/08/25 12:00:06 jonas
  565. * changed pai386, paippc and paiapha (same for tai*) to paicpu (taicpu)
  566. Revision 1.32 1999/08/23 23:25:58 pierre
  567. + TEMPREGDEBUG code, test of register allocation
  568. if a tree uses more than registers32 regs then
  569. internalerror(10) is issued
  570. + EXTTEMPREGDEBUG will also give internalerror(10) if
  571. a same register is freed twice (happens in several part
  572. of current compiler like addn for strings and sets)
  573. Revision 1.31 1999/08/10 12:47:55 pierre
  574. * fpuvaroffset problems solved
  575. Revision 1.30 1999/08/04 13:45:32 florian
  576. + floating point register variables !!
  577. * pairegalloc is now generated for register variables
  578. Revision 1.29 1999/08/04 00:23:48 florian
  579. * renamed i386asm and i386base to cpuasm and cpubase
  580. Revision 1.28 1999/08/02 17:17:11 florian
  581. * small changes for the new code generator
  582. Revision 1.27 1999/06/09 23:22:39 peter
  583. + del_location
  584. Revision 1.26 1999/05/27 19:45:27 peter
  585. * removed oldasm
  586. * plabel -> pasmlabel
  587. * -a switches to source writing automaticly
  588. * assembler readers OOPed
  589. * asmsymbol automaticly external
  590. * jumptables and other label fixes for asm readers
  591. Revision 1.25 1999/05/19 22:00:48 florian
  592. * some new routines for register management:
  593. maybe_savetotemp,restorefromtemp, saveusedregisters,
  594. restoreusedregisters
  595. Revision 1.24 1999/05/18 21:58:34 florian
  596. * fixed some bugs related to temp. ansistrings and functions results
  597. which return records/objects/arrays which need init/final.
  598. Revision 1.23 1999/05/01 13:25:01 peter
  599. * merged nasm compiler
  600. * old asm moved to oldasm/
  601. Revision 1.22 1999/04/21 16:31:48 pierre
  602. ra386att.pas
  603. Revision 1.21 1999/04/16 11:49:47 peter
  604. + tempalloc
  605. + -at to show temp alloc info in .s file
  606. Revision 1.20 1999/02/25 21:02:55 peter
  607. * ag386bin updates
  608. + coff writer
  609. Revision 1.19 1999/02/22 02:15:58 peter
  610. * updates for ag386bin
  611. Revision 1.18 1999/01/18 16:02:20 pierre
  612. * better error info with -Co
  613. Revision 1.17 1998/12/11 23:36:09 florian
  614. + again more stuff for int64/qword:
  615. - comparision operators
  616. - code generation for: str, read(ln), write(ln)
  617. Revision 1.16 1998/12/11 17:22:40 florian
  618. * fixed previous commit bug fix of getexplicitregister32
  619. (usableregs32 was decremented twice, thnaks Pierre for that hint)
  620. }