tgobj.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. This unit implements the base object for temp. generator
  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 tgobj;
  19. {$i defines.inc}
  20. interface
  21. uses
  22. globals,
  23. cpubase,
  24. cpuinfo,
  25. cpuasm,
  26. tainst,
  27. cclasses,globtype,cgbase,aasm;
  28. type
  29. ttemptype = (tt_none,tt_free,tt_normal,tt_persistant,
  30. tt_ansistring,tt_freeansistring,tt_widestring,tt_freewidestring,
  31. tt_interfacecom,tt_freeinterfacecom);
  32. ttemptypeset = set of ttemptype;
  33. ptemprecord = ^ttemprecord;
  34. ttemprecord = record
  35. temptype : ttemptype;
  36. pos : longint;
  37. size : longint;
  38. next : ptemprecord;
  39. nextfree : ptemprecord; { for faster freeblock checking }
  40. {$ifdef EXTDEBUG}
  41. posinfo,
  42. releaseposinfo : tfileposinfo;
  43. {$endif}
  44. end;
  45. ttgobj = class
  46. { contains all temps }
  47. templist : ptemprecord;
  48. { contains all free temps using nextfree links }
  49. tempfreelist : ptemprecord;
  50. { Offsets of the first/last temp }
  51. firsttemp,
  52. lasttemp : longint;
  53. lasttempofsize : ptemprecord;
  54. { tries to hold the amount of times which the current tree is processed }
  55. t_times: longint;
  56. constructor create;
  57. { generates temporary variables }
  58. procedure resettempgen;
  59. procedure setfirsttemp(l : longint);
  60. function gettempsize : longint;
  61. function gettempofsize(list: taasmoutput; size : longint) : longint;
  62. { special call for inlined procedures }
  63. function gettempofsizepersistant(list: taasmoutput; size : longint) : longint;
  64. procedure gettempofsizereferencepersistant(list: taasmoutput; l : longint;var ref : treference);
  65. procedure gettemppointerreferencefortype(list: taasmoutput; var ref : treference; const usedtype, freetype: ttemptype);
  66. function ungettemppointeriftype(list: taasmoutput; const ref : treference; const usedtype, freetype: ttemptype) : boolean;
  67. { for parameter func returns }
  68. procedure normaltemptopersistant(pos : longint);
  69. procedure persistanttemptonormal(pos : longint);
  70. {procedure ungettemp(pos : longint;size : longint);}
  71. procedure ungetpersistanttemp(list: taasmoutput; pos : longint);
  72. procedure ungetpersistanttempreference(list: taasmoutput; const ref : treference);
  73. procedure gettempofsizereference(list: taasmoutput; l : longint;var ref : treference);
  74. function istemp(const ref : treference) : boolean;
  75. procedure ungetiftemp(list: taasmoutput; const ref : treference);
  76. function getsizeoftemp(const ref: treference): longint;
  77. function ungetiftempansi(list: taasmoutput; const ref : treference) : boolean;
  78. procedure gettempansistringreference(list: taasmoutput; var ref : treference);
  79. function ungetiftempwidestr(list: taasmoutput; const ref : treference) : boolean;
  80. procedure gettempwidestringreference(list: taasmoutput; var ref : treference);
  81. function ungetiftempintfcom(list: taasmoutput; const ref : treference) : boolean;
  82. procedure gettempintfcomreference(list: taasmoutput; var ref : treference);
  83. private
  84. function ungettemp(list: taasmoutput; pos:longint;allowtype:ttemptype):ttemptype;
  85. function newtempofsize(size : longint) : longint;
  86. end;
  87. var
  88. tg: ttgobj;
  89. implementation
  90. uses
  91. systems,
  92. verbose,cutils,
  93. cgobj;
  94. constructor ttgobj.create;
  95. begin
  96. tempfreelist:=nil;
  97. templist:=nil;
  98. lasttempofsize := nil;
  99. end;
  100. procedure ttgobj.resettempgen;
  101. var
  102. hp : ptemprecord;
  103. begin
  104. { Clear the old templist }
  105. while assigned(templist) do
  106. begin
  107. {$ifdef EXTDEBUG}
  108. case templist^.temptype of
  109. tt_normal,
  110. tt_persistant :
  111. Comment(V_Warning,'temporary assignment of size '+
  112. tostr(templist^.size)+' from pos '+tostr(templist^.posinfo.line)+
  113. ':'+tostr(templist^.posinfo.column)+
  114. ' at pos '+tostr(templist^.pos)+
  115. ' not freed at the end of the procedure');
  116. tt_ansistring :
  117. Comment(V_Warning,'temporary ANSI assignment of size '+
  118. tostr(templist^.size)+' from pos '+tostr(templist^.posinfo.line)+
  119. ':'+tostr(templist^.posinfo.column)+
  120. ' at pos '+tostr(templist^.pos)+
  121. ' not freed at the end of the procedure');
  122. tt_widestring :
  123. Comment(V_Warning,'temporary WIDE assignment of size '+
  124. tostr(templist^.size)+' from pos '+tostr(templist^.posinfo.line)+
  125. ':'+tostr(templist^.posinfo.column)+
  126. ' at pos '+tostr(templist^.pos)+
  127. ' not freed at the end of the procedure');
  128. end;
  129. {$endif}
  130. hp:=templist;
  131. templist:=hp^.next;
  132. dispose(hp);
  133. end;
  134. templist:=nil;
  135. tempfreelist:=nil;
  136. firsttemp:=0;
  137. lasttemp:=0;
  138. end;
  139. procedure ttgobj.setfirsttemp(l : longint);
  140. begin
  141. { this is a negative value normally }
  142. if l < 0 then
  143. Begin
  144. if odd(l) then
  145. Dec(l);
  146. end
  147. else
  148. Begin
  149. if odd(l) then
  150. Inc(l);
  151. end;
  152. firsttemp:=l;
  153. lasttemp:=l;
  154. end;
  155. function ttgobj.newtempofsize(size : longint) : longint;
  156. var
  157. tl : ptemprecord;
  158. begin
  159. { we need to allocate at least a minimum of 4 bytes, else
  160. we get two temps at the same position resulting in problems
  161. when finding the corresponding temprecord }
  162. if size=0 then
  163. size:=4;
  164. { Just extend the temp, everything below has been use
  165. already }
  166. dec(lasttemp,size);
  167. { now we can create the templist entry }
  168. new(tl);
  169. tl^.temptype:=tt_normal;
  170. tl^.pos:=lasttemp;
  171. tl^.size:=size;
  172. tl^.next:=templist;
  173. tl^.nextfree:=nil;
  174. templist:=tl;
  175. newtempofsize:=tl^.pos;
  176. end;
  177. function ttgobj.gettempofsize(list: taasmoutput; size : longint) : longint;
  178. var
  179. tl,
  180. bestslot,bestprev,
  181. hprev,hp : ptemprecord;
  182. bestsize,ofs : longint;
  183. begin
  184. bestprev:=nil;
  185. bestslot:=nil;
  186. tl:=nil;
  187. bestsize:=0;
  188. {$ifdef EXTDEBUG}
  189. if size=0 then
  190. Comment(V_Warning,'Temp of size 0 requested');
  191. {$endif}
  192. { Align needed size on 4 bytes }
  193. if (size mod 4)<>0 then
  194. size:=size+(4-(size mod 4));
  195. { First check the tmpfreelist }
  196. if assigned(tempfreelist) then
  197. begin
  198. { Check for a slot with the same size first }
  199. hprev:=nil;
  200. hp:=tempfreelist;
  201. while assigned(hp) do
  202. begin
  203. {$ifdef EXTDEBUG}
  204. if hp^.temptype<>tt_free then
  205. Comment(V_Warning,'Temp in freelist is not set to tt_free');
  206. {$endif}
  207. if hp^.size>=size then
  208. begin
  209. { Slot is the same size, then leave immediatly }
  210. if hp^.size=size then
  211. begin
  212. bestprev:=hprev;
  213. bestslot:=hp;
  214. bestsize:=size;
  215. break;
  216. end
  217. else
  218. begin
  219. if (bestsize=0) or (hp^.size<bestsize) then
  220. begin
  221. bestprev:=hprev;
  222. bestslot:=hp;
  223. bestsize:=hp^.size;
  224. end;
  225. end;
  226. end;
  227. hprev:=hp;
  228. hp:=hp^.nextfree;
  229. end;
  230. end;
  231. { Reuse an old temp ? }
  232. if assigned(bestslot) then
  233. begin
  234. if bestsize=size then
  235. begin
  236. bestslot^.temptype:=tt_normal;
  237. ofs:=bestslot^.pos;
  238. tl:=bestslot;
  239. { Remove from the tempfreelist }
  240. if assigned(bestprev) then
  241. bestprev^.nextfree:=bestslot^.nextfree
  242. else
  243. tempfreelist:=bestslot^.nextfree;
  244. end
  245. else
  246. begin
  247. { Resize the old block }
  248. dec(bestslot^.size,size);
  249. { Create new block and link after bestslot }
  250. new(tl);
  251. tl^.temptype:=tt_normal;
  252. tl^.pos:=bestslot^.pos+bestslot^.size;
  253. ofs:=tl^.pos;
  254. tl^.size:=size;
  255. tl^.nextfree:=nil;
  256. { link the new block }
  257. tl^.next:=bestslot^.next;
  258. bestslot^.next:=tl;
  259. end;
  260. end
  261. else
  262. begin
  263. ofs:=newtempofsize(size);
  264. tl:=templist;
  265. end;
  266. lasttempofsize:=tl;
  267. {$ifdef EXTDEBUG}
  268. tl^.posinfo:=aktfilepos;
  269. {$endif}
  270. list.concat(Taitempalloc.alloc(ofs,size));
  271. gettempofsize:=ofs;
  272. end;
  273. function ttgobj.gettempofsizepersistant(list: taasmoutput; size : longint) : longint;
  274. var
  275. l : longint;
  276. begin
  277. l:=gettempofsize(list, size);
  278. lasttempofsize^.temptype:=tt_persistant;
  279. {$ifdef EXTDEBUG}
  280. Comment(V_Debug,'temp managment : call to gettempofsizepersistant()'+
  281. ' with size '+tostr(size)+' returned '+tostr(l));
  282. {$endif}
  283. gettempofsizepersistant:=l;
  284. end;
  285. function ttgobj.gettempsize : longint;
  286. var
  287. _align : longint;
  288. begin
  289. { align to 4 bytes at least
  290. otherwise all those subl $2,%esp are meaningless PM }
  291. _align:=target_info.alignment.localalignmin;
  292. if _align<4 then
  293. _align:=4;
  294. gettempsize:=Align(-lasttemp,_align);
  295. end;
  296. procedure ttgobj.gettempofsizereference(list: taasmoutput; l : longint;var ref : treference);
  297. begin
  298. { do a reset, because the reference isn't used }
  299. reset_reference(ref);
  300. ref.offset:=gettempofsize(list,l);
  301. ref.base:=procinfo^.framepointer;
  302. end;
  303. procedure ttgobj.gettempofsizereferencepersistant(list: taasmoutput; l : longint;var ref : treference);
  304. begin
  305. { do a reset, because the reference isn't used }
  306. reset_reference(ref);
  307. ref.offset:=gettempofsizepersistant(list,l);
  308. ref.base:=procinfo^.framepointer;
  309. end;
  310. procedure ttgobj.gettemppointerreferencefortype(list: taasmoutput; var ref : treference; const usedtype, freetype: ttemptype);
  311. var
  312. foundslot,tl : ptemprecord;
  313. begin
  314. { do a reset, because the reference isn't used }
  315. reset_reference(ref);
  316. ref.base:=procinfo^.framepointer;
  317. { Reuse old slot ? }
  318. foundslot:=nil;
  319. tl:=templist;
  320. while assigned(tl) do
  321. begin
  322. if tl^.temptype=freetype then
  323. begin
  324. foundslot:=tl;
  325. {$ifdef EXTDEBUG}
  326. tl^.posinfo:=aktfilepos;
  327. {$endif}
  328. break;
  329. end;
  330. tl:=tl^.next;
  331. end;
  332. if assigned(foundslot) then
  333. begin
  334. foundslot^.temptype:=usedtype;
  335. ref.offset:=foundslot^.pos;
  336. end
  337. else
  338. begin
  339. ref.offset:=newtempofsize(target_info.size_of_pointer);
  340. {$ifdef EXTDEBUG}
  341. templist^.posinfo:=aktfilepos;
  342. {$endif}
  343. templist^.temptype:=usedtype;
  344. end;
  345. list.concat(Taitempalloc.alloc(ref.offset,target_info.size_of_pointer));
  346. end;
  347. function ttgobj.ungettemppointeriftype(list: taasmoutput; const ref : treference; const usedtype, freetype: ttemptype) : boolean;
  348. var
  349. tl : ptemprecord;
  350. begin
  351. ungettemppointeriftype:=false;
  352. tl:=templist;
  353. while assigned(tl) do
  354. begin
  355. if tl^.pos=ref.offset then
  356. begin
  357. if tl^.temptype=usedtype then
  358. begin
  359. tl^.temptype:=freetype;
  360. ungettemppointeriftype:=true;
  361. list.concat(Taitempalloc.dealloc(tl^.pos,tl^.size));
  362. exit;
  363. {$ifdef EXTDEBUG}
  364. end
  365. else if (tl^.temptype=freetype) then
  366. begin
  367. Comment(V_Debug,'temp managment problem : ungettemppointeriftype()'+
  368. ' at pos '+tostr(ref.offset)+ ' already free !');
  369. {$endif}
  370. end;
  371. end;
  372. tl:=tl^.next;
  373. end;
  374. end;
  375. procedure ttgobj.gettempansistringreference(list: taasmoutput; var ref : treference);
  376. begin
  377. gettemppointerreferencefortype(list,ref,tt_ansistring,tt_freeansistring);
  378. end;
  379. procedure ttgobj.gettempwidestringreference(list: taasmoutput; var ref : treference);
  380. begin
  381. gettemppointerreferencefortype(list,ref,tt_widestring,tt_freewidestring);
  382. end;
  383. function ttgobj.ungetiftempansi(list: taasmoutput; const ref : treference) : boolean;
  384. begin
  385. ungetiftempansi:=ungettemppointeriftype(list,ref,tt_ansistring,tt_freeansistring);
  386. end;
  387. function ttgobj.ungetiftempwidestr(list: taasmoutput; const ref : treference) : boolean;
  388. begin
  389. ungetiftempwidestr:=ungettemppointeriftype(list,ref,tt_widestring,tt_freewidestring);
  390. end;
  391. procedure ttgobj.gettempintfcomreference(list: taasmoutput; var ref : treference);
  392. begin
  393. gettemppointerreferencefortype(list,ref,tt_interfacecom,tt_freeinterfacecom);
  394. end;
  395. function ttgobj.ungetiftempintfcom(list: taasmoutput; const ref : treference) : boolean;
  396. begin
  397. ungetiftempintfcom:=ungettemppointeriftype(list,ref,tt_ansistring,tt_freeansistring);
  398. end;
  399. function ttgobj.istemp(const ref : treference) : boolean;
  400. begin
  401. { ref.index = R_NO was missing
  402. led to problems with local arrays
  403. with lower bound > 0 (PM) }
  404. istemp:=((ref.base=procinfo^.framepointer) and
  405. {$ifdef i386}
  406. (ref.index=R_NO) and
  407. {$endif}
  408. (ref.offset<firsttemp));
  409. end;
  410. procedure ttgobj.persistanttemptonormal(pos : longint);
  411. var
  412. hp : ptemprecord;
  413. begin
  414. hp:=templist;
  415. while assigned(hp) do
  416. if (hp^.pos=pos) and (hp^.temptype=tt_persistant) then
  417. begin
  418. {$ifdef EXTDEBUG}
  419. Comment(V_Debug,'temp managment : persistanttemptonormal()'+
  420. ' at pos '+tostr(pos)+ ' found !');
  421. {$endif}
  422. hp^.temptype:=tt_normal;
  423. exit;
  424. end
  425. else
  426. hp:=hp^.next;
  427. {$ifdef EXTDEBUG}
  428. Comment(V_Debug,'temp managment problem : persistanttemptonormal()'+
  429. ' at pos '+tostr(pos)+ ' not found !');
  430. {$endif}
  431. end;
  432. procedure ttgobj.normaltemptopersistant(pos : longint);
  433. var
  434. hp : ptemprecord;
  435. begin
  436. hp:=templist;
  437. while assigned(hp) do
  438. if (hp^.pos=pos) and (hp^.temptype=tt_normal) then
  439. begin
  440. {$ifdef EXTDEBUG}
  441. Comment(V_Debug,'temp managment : normaltemptopersistant()'+
  442. ' at pos '+tostr(pos)+ ' found !');
  443. {$endif}
  444. hp^.temptype:=tt_persistant;
  445. exit;
  446. end
  447. else
  448. hp:=hp^.next;
  449. {$ifdef EXTDEBUG}
  450. Comment(V_Debug,'temp managment problem : normaltemptopersistant()'+
  451. ' at pos '+tostr(pos)+ ' not found !');
  452. {$endif}
  453. end;
  454. function ttgobj.ungettemp(list: taasmoutput; pos:longint;allowtype:ttemptype):ttemptype;
  455. var
  456. hp,hnext,hprev,hprevfree : ptemprecord;
  457. begin
  458. ungettemp:=tt_none;
  459. hp:=templist;
  460. hprev:=nil;
  461. hprevfree:=nil;
  462. while assigned(hp) do
  463. begin
  464. if (hp^.pos=pos) then
  465. begin
  466. { check type }
  467. ungettemp:=hp^.temptype;
  468. if hp^.temptype<>allowtype then
  469. begin
  470. exit;
  471. end;
  472. list.concat(Taitempalloc.dealloc(hp^.pos,hp^.size));
  473. { set this block to free }
  474. hp^.temptype:=tt_free;
  475. { Update tempfreelist }
  476. if assigned(hprevfree) then
  477. begin
  478. { Connect with previous? }
  479. if assigned(hprev) and (hprev^.temptype=tt_free) then
  480. begin
  481. inc(hprev^.size,hp^.size);
  482. hprev^.next:=hp^.next;
  483. dispose(hp);
  484. hp:=hprev;
  485. end
  486. else
  487. hprevfree^.nextfree:=hp;
  488. end
  489. else
  490. begin
  491. hp^.nextfree:=tempfreelist;
  492. tempfreelist:=hp;
  493. end;
  494. { Next block free ? Yes, then concat }
  495. hnext:=hp^.next;
  496. if assigned(hnext) and (hnext^.temptype=tt_free) then
  497. begin
  498. inc(hp^.size,hnext^.size);
  499. hp^.nextfree:=hnext^.nextfree;
  500. hp^.next:=hnext^.next;
  501. dispose(hnext);
  502. end;
  503. exit;
  504. end;
  505. if (hp^.temptype=tt_free) then
  506. hprevfree:=hp;
  507. hprev:=hp;
  508. hp:=hp^.next;
  509. end;
  510. ungettemp:=tt_none;
  511. end;
  512. function ttgobj.getsizeoftemp(const ref: treference): longint;
  513. var
  514. hp : ptemprecord;
  515. begin
  516. hp:=templist;
  517. while assigned(hp) do
  518. begin
  519. if (hp^.pos=ref.offset) then
  520. begin
  521. getsizeoftemp := hp^.size;
  522. exit;
  523. end;
  524. hp := hp^.next;
  525. end;
  526. getsizeoftemp := -1;
  527. end;
  528. procedure ttgobj.ungetpersistanttemp(list: taasmoutput; pos : longint);
  529. begin
  530. {$ifdef EXTDEBUG}
  531. if ungettemp(list,pos,tt_persistant)<>tt_persistant then
  532. Comment(V_Warning,'temp managment problem : ungetpersistanttemp()'+
  533. ' at pos '+tostr(pos)+ ' not found !');
  534. {$else}
  535. ungettemp(list,pos,tt_persistant);
  536. {$endif}
  537. end;
  538. procedure ttgobj.ungetpersistanttempreference(list: taasmoutput; const ref : treference);
  539. begin
  540. ungetpersistanttemp(list, ref.offset);
  541. end;
  542. procedure ttgobj.ungetiftemp(list: taasmoutput; const ref : treference);
  543. {$ifdef EXTDEBUG}
  544. var
  545. tt : ttemptype;
  546. {$endif}
  547. begin
  548. if istemp(ref) then
  549. begin
  550. { first check if ansistring }
  551. if ungetiftempansi(list,ref) or
  552. ungetiftempwidestr(list,ref) or
  553. ungetiftempintfcom(list,ref) then
  554. exit;
  555. {$ifndef EXTDEBUG}
  556. ungettemp(list,ref.offset,tt_normal);
  557. {$else}
  558. tt:=ungettemp(list,ref.offset,tt_normal);
  559. if tt=tt_persistant then
  560. Comment(V_Debug,'temp at pos '+tostr(ref.offset)+ ' not released because persistant!');
  561. if tt=tt_none then
  562. Comment(V_Warning,'temp not found for release at offset '+tostr(ref.offset));
  563. {$endif}
  564. end;
  565. end;
  566. initialization
  567. tg := ttgobj.create;
  568. finalization
  569. tg.free;
  570. end.
  571. {
  572. $Log$
  573. Revision 1.1 2002-03-31 20:26:37 jonas
  574. + a_loadfpu_* and a_loadmm_* methods in tcg
  575. * register allocation is now handled by a class and is mostly processor
  576. independent (+rgobj.pas and i386/rgcpu.pas)
  577. * temp allocation is now handled by a class (+tgobj.pas, -i386\tgcpu.pas)
  578. * some small improvements and fixes to the optimizer
  579. * some register allocation fixes
  580. * some fpuvaroffset fixes in the unary minus node
  581. * push/popusedregisters is now called rg.save/restoreusedregisters and
  582. (for i386) uses temps instead of push/pop's when using -Op3 (that code is
  583. also better optimizable)
  584. * fixed and optimized register saving/restoring for new/dispose nodes
  585. * LOC_FPU locations now also require their "register" field to be set to
  586. R_ST, not R_ST0 (the latter is used for LOC_CFPUREGISTER locations only)
  587. - list field removed of the tnode class because it's not used currently
  588. and can cause hard-to-find bugs
  589. Revision 1.1 2000/07/13 06:30:09 michael
  590. + Initial import
  591. Revision 1.10 2000/02/17 14:48:36 florian
  592. * updated to use old firstpass
  593. Revision 1.9 2000/01/07 01:14:55 peter
  594. * updated copyright to 2000
  595. Revision 1.8 1999/10/14 14:57:54 florian
  596. - removed the hcodegen use in the new cg, use cgbase instead
  597. Revision 1.7 1999/10/12 21:20:47 florian
  598. * new codegenerator compiles again
  599. Revision 1.6 1999/09/10 18:48:11 florian
  600. * some bug fixes (e.g. must_be_valid and procinfo.funcret_is_valid)
  601. * most things for stored properties fixed
  602. Revision 1.5 1999/08/06 16:04:06 michael
  603. + introduced tainstruction
  604. Revision 1.4 1999/08/03 00:33:23 michael
  605. + Added cpuasm for alpha
  606. Revision 1.3 1999/08/03 00:32:13 florian
  607. * reg_vars and reg_pushes is now in tgobj
  608. Revision 1.2 1999/08/02 23:13:22 florian
  609. * more changes to compile for the Alpha
  610. Revision 1.1 1999/08/02 17:14:12 florian
  611. + changed the temp. generator to an object
  612. }