tgeni386.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731
  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. {$ifndef noAllocEdi}
  319. if r in [R_ESI,R_EDI] then
  320. begin
  321. exprasmlist^.concat(new(pairegalloc,dealloc(r)));
  322. exit;
  323. end;
  324. {$endif noAllocEdi}
  325. if cs_regalloc in aktglobalswitches then
  326. begin
  327. { takes much time }
  328. if not(r in usableregs) then
  329. exit;
  330. unused:=unused+[r];
  331. inc(usablereg32);
  332. end
  333. else
  334. begin
  335. if not(r in [R_EAX,R_EBX,R_ECX,R_EDX]) then
  336. exit;
  337. {$ifdef TEMPREGDEBUG}
  338. if (r in unused) then
  339. {$ifdef EXTTEMPREGDEBUG}
  340. begin
  341. Comment(V_Debug,'register freed twice '+reg2str(r));
  342. testregisters32;
  343. exit;
  344. end
  345. {$else EXTTEMPREGDEBUG}
  346. exit
  347. {$endif EXTTEMPREGDEBUG}
  348. else
  349. {$endif TEMPREGDEBUG}
  350. inc(usablereg32);
  351. unused:=unused+[r];
  352. {$ifdef TEMPREGDEBUG}
  353. reg_releaser[r]:=curptree^;
  354. {$endif TEMPREGDEBUG}
  355. end;
  356. exprasmlist^.concat(new(pairegalloc,dealloc(r)));
  357. {$ifdef TEMPREGDEBUG}
  358. testregisters32;
  359. {$endif TEMPREGDEBUG}
  360. end;
  361. {$ifdef SUPPORT_MMX}
  362. function getregistermmx : tregister;
  363. var
  364. r : tregister;
  365. begin
  366. dec(usableregmmx);
  367. for r:=R_MM0 to R_MM6 do
  368. if r in unused then
  369. begin
  370. unused:=unused-[r];
  371. usedinproc:=usedinproc or ($80 shr byte(R_EAX));
  372. getregistermmx:=r;
  373. exit;
  374. end;
  375. internalerror(10);
  376. end;
  377. procedure ungetregistermmx(r : tregister);
  378. begin
  379. if cs_regalloc in aktglobalswitches then
  380. begin
  381. { takes much time }
  382. if not(r in usableregs) then
  383. exit;
  384. unused:=unused+[r];
  385. inc(usableregmmx);
  386. end
  387. else
  388. begin
  389. unused:=unused+[r];
  390. inc(usableregmmx);
  391. end;
  392. end;
  393. {$endif SUPPORT_MMX}
  394. procedure del_reference(const ref : treference);
  395. begin
  396. if ref.is_immediate then
  397. exit;
  398. ungetregister32(ref.base);
  399. ungetregister32(ref.index);
  400. end;
  401. procedure del_locref(const location : tlocation);
  402. begin
  403. if (location.loc<>loc_mem) and (location.loc<>loc_reference) then
  404. exit;
  405. if location.reference.is_immediate then
  406. exit;
  407. ungetregister32(location.reference.base);
  408. ungetregister32(location.reference.index);
  409. end;
  410. procedure del_location(const l : tlocation);
  411. begin
  412. case l.loc of
  413. LOC_REGISTER :
  414. ungetregister(l.register);
  415. LOC_MEM,LOC_REFERENCE :
  416. del_reference(l.reference);
  417. end;
  418. end;
  419. {$ifdef TEMPREGDEBUG}
  420. procedure testregisters32;
  421. var test : byte;
  422. begin
  423. test:=0;
  424. if R_EAX in unused then
  425. inc(test);
  426. if R_EBX in unused then
  427. inc(test);
  428. if R_ECX in unused then
  429. inc(test);
  430. if R_EDX in unused then
  431. inc(test);
  432. if test<>usablereg32 then
  433. internalerror(10);
  434. end;
  435. {$endif TEMPREGDEBUG}
  436. function getregister32 : tregister;
  437. begin
  438. if usablereg32=0 then
  439. internalerror(10);
  440. dec(usablereg32);
  441. {$ifdef TEMPREGDEBUG}
  442. if curptree^^.usableregs-usablereg32>curptree^^.registers32 then
  443. internalerror(10);
  444. {$endif TEMPREGDEBUG}
  445. {$ifdef EXTTEMPREGDEBUG}
  446. if curptree^^.usableregs-usablereg32>curptree^^.reallyusedregs then
  447. curptree^^.reallyusedregs:=curptree^^.usableregs-usablereg32;
  448. {$endif EXTTEMPREGDEBUG}
  449. if R_EAX in unused then
  450. begin
  451. unused:=unused-[R_EAX];
  452. usedinproc:=usedinproc or ($80 shr byte(R_EAX));
  453. getregister32:=R_EAX;
  454. {$ifdef TEMPREGDEBUG}
  455. reg_user[R_EAX]:=curptree^;
  456. {$endif TEMPREGDEBUG}
  457. exprasmlist^.concat(new(pairegalloc,alloc(R_EAX)));
  458. end
  459. else if R_EDX in unused then
  460. begin
  461. unused:=unused-[R_EDX];
  462. usedinproc:=usedinproc or ($80 shr byte(R_EDX));
  463. getregister32:=R_EDX;
  464. {$ifdef TEMPREGDEBUG}
  465. reg_user[R_EDX]:=curptree^;
  466. {$endif TEMPREGDEBUG}
  467. exprasmlist^.concat(new(pairegalloc,alloc(R_EDX)));
  468. end
  469. else if R_EBX in unused then
  470. begin
  471. unused:=unused-[R_EBX];
  472. usedinproc:=usedinproc or ($80 shr byte(R_EBX));
  473. getregister32:=R_EBX;
  474. {$ifdef TEMPREGDEBUG}
  475. reg_user[R_EBX]:=curptree^;
  476. {$endif TEMPREGDEBUG}
  477. exprasmlist^.concat(new(pairegalloc,alloc(R_EBX)));
  478. end
  479. else if R_ECX in unused then
  480. begin
  481. unused:=unused-[R_ECX];
  482. usedinproc:=usedinproc or ($80 shr byte(R_ECX));
  483. getregister32:=R_ECX;
  484. {$ifdef TEMPREGDEBUG}
  485. reg_user[R_ECX]:=curptree^;
  486. {$endif TEMPREGDEBUG}
  487. exprasmlist^.concat(new(pairegalloc,alloc(R_ECX)));
  488. end
  489. else internalerror(10);
  490. {$ifdef TEMPREGDEBUG}
  491. testregisters32;
  492. {$endif TEMPREGDEBUG}
  493. end;
  494. function getexplicitregister32(r : tregister) : tregister;
  495. begin
  496. {$ifndef noAllocEdi}
  497. if r in [R_ESI,R_EDI] then
  498. begin
  499. exprasmlist^.concat(new(pairegalloc,alloc(r)));
  500. getexplicitregister32 := r;
  501. exit;
  502. end;
  503. {$endif noAllocEdi}
  504. if r in unused then
  505. begin
  506. dec(usablereg32);
  507. {$ifdef TEMPREGDEBUG}
  508. if curptree^^.usableregs-usablereg32>curptree^^.registers32 then
  509. internalerror(10);
  510. reg_user[r]:=curptree^;
  511. {$endif TEMPREGDEBUG}
  512. unused:=unused-[r];
  513. usedinproc:=usedinproc or ($80 shr byte(r));
  514. exprasmlist^.concat(new(pairegalloc,alloc(r)));
  515. getexplicitregister32:=r;
  516. {$ifdef TEMPREGDEBUG}
  517. testregisters32;
  518. {$endif TEMPREGDEBUG}
  519. end
  520. else
  521. getexplicitregister32:=getregister32;
  522. end;
  523. procedure cleartempgen;
  524. begin
  525. unused:=usableregs;
  526. usablereg32:=c_usableregs;
  527. {fpuvaroffset:=0;
  528. this must only be resetted at each procedure
  529. compilation start PM }
  530. end;
  531. procedure clearregistercount;
  532. var
  533. regi : tregister;
  534. begin
  535. {$ifdef SUPPORT_MMX}
  536. for regi:=R_EAX to R_MM6 do
  537. begin
  538. reg_pushes[regi]:=0;
  539. is_reg_var[regi]:=false;
  540. end;
  541. {$else SUPPORT_MMX}
  542. for regi:=R_EAX to R_EDI do
  543. begin
  544. reg_pushes[regi]:=0;
  545. is_reg_var[regi]:=false;
  546. end;
  547. {$endif SUPPORT_MMX}
  548. end;
  549. function correct_fpuregister(r : tregister;ofs : byte) : tregister;
  550. begin
  551. correct_fpuregister:=tregister(longint(r)+ofs);
  552. end;
  553. procedure resetusableregisters;
  554. begin
  555. {$ifdef SUPPORT_MMX}
  556. usableregs:=[R_EAX,R_EBX,R_ECX,R_EDX,R_MM0..R_MM6];
  557. c_usableregs:=4;
  558. usableregmmx:=8;
  559. {$else}
  560. usableregs:=[R_EAX,R_EBX,R_ECX,R_EDX];
  561. c_usableregs:=4;
  562. {$endif SUPPORT_MMX}
  563. fpuvaroffset:=0;
  564. end;
  565. begin
  566. resetusableregisters;
  567. end.
  568. {
  569. $Log$
  570. Revision 1.39 2000-01-21 12:17:42 jonas
  571. * regallocation fixes
  572. Revision 1.38 2000/01/09 12:35:02 jonas
  573. * changed edi allocation to use getexplicitregister32/ungetregister
  574. (adapted tgeni386 a bit for this) and enabled it by default
  575. * fixed very big and stupid bug of mine in cg386mat that broke the
  576. include() code (and make cycle :( ) if you compiled without
  577. -dnewoptimizations
  578. Revision 1.37 2000/01/07 01:14:47 peter
  579. * updated copyright to 2000
  580. Revision 1.36 1999/11/06 14:34:31 peter
  581. * truncated log to 20 revs
  582. Revision 1.35 1999/09/27 23:45:02 peter
  583. * procinfo is now a pointer
  584. * support for result setting in sub procedure
  585. Revision 1.34 1999/08/27 10:38:32 pierre
  586. + EXTTEMPREGDEBUG code added
  587. Revision 1.33 1999/08/25 12:00:06 jonas
  588. * changed pai386, paippc and paiapha (same for tai*) to paicpu (taicpu)
  589. Revision 1.32 1999/08/23 23:25:58 pierre
  590. + TEMPREGDEBUG code, test of register allocation
  591. if a tree uses more than registers32 regs then
  592. internalerror(10) is issued
  593. + EXTTEMPREGDEBUG will also give internalerror(10) if
  594. a same register is freed twice (happens in several part
  595. of current compiler like addn for strings and sets)
  596. Revision 1.31 1999/08/10 12:47:55 pierre
  597. * fpuvaroffset problems solved
  598. Revision 1.30 1999/08/04 13:45:32 florian
  599. + floating point register variables !!
  600. * pairegalloc is now generated for register variables
  601. Revision 1.29 1999/08/04 00:23:48 florian
  602. * renamed i386asm and i386base to cpuasm and cpubase
  603. Revision 1.28 1999/08/02 17:17:11 florian
  604. * small changes for the new code generator
  605. Revision 1.27 1999/06/09 23:22:39 peter
  606. + del_location
  607. Revision 1.26 1999/05/27 19:45:27 peter
  608. * removed oldasm
  609. * plabel -> pasmlabel
  610. * -a switches to source writing automaticly
  611. * assembler readers OOPed
  612. * asmsymbol automaticly external
  613. * jumptables and other label fixes for asm readers
  614. Revision 1.25 1999/05/19 22:00:48 florian
  615. * some new routines for register management:
  616. maybe_savetotemp,restorefromtemp, saveusedregisters,
  617. restoreusedregisters
  618. Revision 1.24 1999/05/18 21:58:34 florian
  619. * fixed some bugs related to temp. ansistrings and functions results
  620. which return records/objects/arrays which need init/final.
  621. Revision 1.23 1999/05/01 13:25:01 peter
  622. * merged nasm compiler
  623. * old asm moved to oldasm/
  624. Revision 1.22 1999/04/21 16:31:48 pierre
  625. ra386att.pas
  626. Revision 1.21 1999/04/16 11:49:47 peter
  627. + tempalloc
  628. + -at to show temp alloc info in .s file
  629. Revision 1.20 1999/02/25 21:02:55 peter
  630. * ag386bin updates
  631. + coff writer
  632. Revision 1.19 1999/02/22 02:15:58 peter
  633. * updates for ag386bin
  634. Revision 1.18 1999/01/18 16:02:20 pierre
  635. * better error info with -Co
  636. Revision 1.17 1998/12/11 23:36:09 florian
  637. + again more stuff for int64/qword:
  638. - comparision operators
  639. - code generation for: str, read(ln), write(ln)
  640. Revision 1.16 1998/12/11 17:22:40 florian
  641. * fixed previous commit bug fix of getexplicitregister32
  642. (usableregs32 was decremented twice, thnaks Pierre for that hint)
  643. }