ag68kmpw.pas 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. {
  2. $Id$
  3. Copyright (c) 1998 by the FPC development team
  4. This unit implements an asmoutput class for Macintosh MPW syntax
  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 ag68kmpw;
  19. interface
  20. uses aasm,assemble;
  21. type
  22. pm68kmpwasmlist=^tm68kmpwasmlist;
  23. tm68kmpwasmlist = object(tasmlist)
  24. procedure WriteTree(p:paasmoutput);virtual;
  25. procedure WriteAsmList;virtual;
  26. end;
  27. implementation
  28. uses
  29. globtype,systems,
  30. dos,globals,cobjects,m68k,
  31. strings,files,verbose
  32. {$ifdef GDB}
  33. ,gdb
  34. {$endif GDB}
  35. ;
  36. function double2str(d : double) : string;
  37. var
  38. hs : string;
  39. begin
  40. str(d,hs);
  41. double2str:=hs;
  42. end;
  43. (* TO SUPPORT SOONER OR LATER!!!
  44. function comp2str(d : bestreal) : string;
  45. type
  46. pdouble = ^double;
  47. var
  48. c : comp;
  49. dd : pdouble;
  50. begin
  51. {$ifdef TP}
  52. c:=d;
  53. {$else}
  54. c:=comp(d);
  55. {$endif}
  56. dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
  57. comp2str:=double2str(dd^);
  58. end; *)
  59. const
  60. line_length = 70;
  61. function getreferencestring(const ref : treference; var importstring: string) : string;
  62. var
  63. s : string;
  64. begin
  65. s:='';
  66. importstring:='';
  67. if ref.isintvalue then
  68. s:='#'+tostr(ref.offset)
  69. else
  70. with ref do
  71. begin
  72. if (index=R_NO) and (base=R_NO) and (direction=dir_none) then
  73. begin
  74. if assigned(symbol) then
  75. begin
  76. s:=s+symbol^;
  77. importstring:=symbol^;
  78. if offset<0 then
  79. s:=s+tostr(offset)
  80. else
  81. if (offset>0) then
  82. s:=s+'+'+tostr(offset);
  83. s:='('+s+').L';
  84. end
  85. else
  86. begin
  87. { direct memory addressing }
  88. s:=s+'('+tostr(offset)+').L';
  89. end;
  90. end
  91. { index<>R_NO or base<>R_NO }
  92. else
  93. begin
  94. if assigned(symbol) then
  95. s:=s+symbol^;
  96. if offset<0 then
  97. s:=s+tostr(offset)
  98. else
  99. if (offset>0) then
  100. begin
  101. if (symbol=nil) then s:=tostr(offset)
  102. else s:=s+'+'+tostr(offset);
  103. end;
  104. if (index<>R_NO) and (base=R_NO) and (direction=dir_none) then
  105. begin
  106. if (scalefactor = 1) or (scalefactor = 0) then
  107. begin
  108. if offset = 0 then
  109. s:=s+'0(,'+mot_reg2str[index]+'.l)'
  110. else
  111. s:=s+'(,'+mot_reg2str[index]+'.l)';
  112. end
  113. else
  114. begin
  115. if offset = 0 then
  116. s:=s+'0(,'+mot_reg2str[index]+'.l*'+tostr(scalefactor)+')'
  117. else
  118. s:=s+'(,'+mot_reg2str[index]+'.l*'+tostr(scalefactor)+')';
  119. end
  120. end
  121. else
  122. if (index=R_NO) and (base<>R_NO) and (direction=dir_inc) then
  123. begin
  124. if (scalefactor = 1) or (scalefactor = 0) then
  125. s:=s+'('+mot_reg2str[base]+')+'
  126. else
  127. InternalError(10002);
  128. end
  129. else
  130. if (index=R_NO) and (base<>R_NO) and (direction=dir_dec) then
  131. begin
  132. if (scalefactor = 1) or (scalefactor = 0) then
  133. s:=s+'-('+mot_reg2str[base]+')'
  134. else
  135. InternalError(10003);
  136. end
  137. else
  138. if (index=R_NO) and (base<>R_NO) and (direction=dir_none) then
  139. begin
  140. s:=s+'('+mot_reg2str[base]+')';
  141. end
  142. else
  143. if (index<>R_NO) and (base<>R_NO) and (direction=dir_none) then
  144. begin
  145. if (scalefactor = 1) or (scalefactor = 0) then
  146. begin
  147. if offset = 0 then
  148. s:=s+'0('+mot_reg2str[base]+','+mot_reg2str[index]+'.l)'
  149. else
  150. s:=s+'('+mot_reg2str[base]+','+mot_reg2str[index]+'.l)';
  151. end
  152. else
  153. begin
  154. if offset = 0 then
  155. s:=s+'0('+mot_reg2str[base]+','+mot_reg2str[index]+'.l*'+tostr(scalefactor)+')'
  156. else
  157. s:=s+'('+mot_reg2str[base]+','+mot_reg2str[index]+'.l*'+tostr(scalefactor)+')';
  158. end
  159. end
  160. { if this is not a symbol, and is not in the above, then there is an error }
  161. else
  162. if NOT assigned(symbol) then
  163. InternalError(10004);
  164. end; { endif }
  165. end; { end with }
  166. getreferencestring:=s;
  167. end;
  168. function getopstr(t : byte;o : pointer) : string;
  169. var
  170. hs : string;
  171. i: tregister;
  172. importstring: string;
  173. begin
  174. case t of
  175. top_reg : getopstr:=mot_reg2str[tregister(o)];
  176. top_reglist: begin
  177. hs:='';
  178. for i:=R_NO to R_FPSR do
  179. begin
  180. if i in tregisterlist(o^) then
  181. hs:=hs+mot_reg2str[i]+'/';
  182. end;
  183. delete(hs,length(hs),1);
  184. getopstr := hs;
  185. end;
  186. top_ref : getopstr:=getreferencestring(preference(o)^,importstring);
  187. top_const : getopstr:='#'+tostr(longint(o));
  188. top_symbol : begin
  189. hs[0]:=chr(strlen(pchar(pcsymbol(o)^.symbol)));
  190. move(pchar(pcsymbol(o)^.symbol)^,hs[1],byte(hs[0]));
  191. if pcsymbol(o)^.offset>0 then
  192. hs:=hs+'+'+tostr(pcsymbol(o)^.offset)
  193. else if pcsymbol(o)^.offset<0 then
  194. hs:=hs+tostr(pcsymbol(o)^.offset);
  195. getopstr:=hs;
  196. end;
  197. else internalerror(10001);
  198. end;
  199. end;
  200. function getopstr_jmp(t : byte;o : pointer; var importname: string) : string;
  201. var
  202. hs : string;
  203. begin
  204. importname:='';
  205. case t of
  206. top_reg : getopstr_jmp:=mot_reg2str[tregister(o)];
  207. top_ref : getopstr_jmp:=getreferencestring(preference(o)^,importname);
  208. top_const : getopstr_jmp:=tostr(longint(o));
  209. top_symbol : begin
  210. hs[0]:=chr(strlen(pchar(pcsymbol(o)^.symbol)));
  211. move(pchar(pcsymbol(o)^.symbol)^,hs[1],byte(hs[0]));
  212. if pcsymbol(o)^.offset>0 then
  213. hs:=hs+'+'+tostr(pcsymbol(o)^.offset)
  214. else if pcsymbol(o)^.offset<0 then
  215. hs:=hs+tostr(pcsymbol(o)^.offset);
  216. importname:=hs;
  217. hs:='('+hs+').L';
  218. getopstr_jmp:=hs;
  219. end;
  220. else internalerror(10001);
  221. end;
  222. end;
  223. {****************************************************************************
  224. TM68KMOTASMLIST
  225. ****************************************************************************}
  226. var
  227. LastSec : tsection;
  228. procedure tm68kmpwasmlist.WriteTree(p:paasmoutput);
  229. var
  230. hp : pai;
  231. s : string;
  232. counter,
  233. i,j,lines : longint;
  234. quoted : boolean;
  235. importname: string;
  236. begin
  237. hp:=pai(p^.first);
  238. while assigned(hp) do
  239. begin
  240. case hp^.typ of
  241. ait_comment : Begin
  242. AsmWrite(target_asm.comment);
  243. AsmWritePChar(pai_asm_comment(hp)^.str);
  244. AsmLn;
  245. End;
  246. ait_section : begin
  247. if pai_section(hp)^.sec<>sec_none then
  248. begin
  249. AsmLn;
  250. end;
  251. LastSec:=pai_section(hp)^.sec;
  252. end;
  253. {$ifdef DREGALLOC}
  254. ait_regalloc : AsmWriteLn(target_asm.comment+'Register '+att_reg2str[pairegalloc(hp)^.reg]+' allocated');
  255. ait_regdealloc : AsmWriteLn(target_asm.comment+'Register '+att_reg2str[pairegalloc(hp)^.reg]+' released');
  256. {$endif DREGALLOC}
  257. ait_align : AsmWriteLn(#9'ALIGN '+tostr(pai_align(hp)^.aligntype));
  258. ait_external : AsmWriteLn(#9'IMPORT'#9+StrPas(pai_external(hp)^.name));
  259. ait_real_extended : Message(assem_e_extended_not_supported);
  260. ait_comp : Message(assem_e_comp_not_supported);
  261. ait_datablock : begin
  262. { ------------------------------------------------------- }
  263. { ----------- ALIGNMENT FOR ANY NON-BYTE VALUE ---------- }
  264. { ------------- REQUIREMENT FOR 680x0 ------------------- }
  265. { ------------------------------------------------------- }
  266. if pai_datablock(hp)^.size <> 1 then
  267. begin
  268. if not(cs_littlesize in aktglobalswitches) then
  269. AsmWriteLn(#9'ALIGN 4')
  270. else
  271. AsmWriteLn(#9'ALIGN 2');
  272. end;
  273. if pai_datablock(hp)^.is_global then
  274. AsmWriteLn(#9'EXPORT'#9+StrPas(pai_datablock(hp)^.name));
  275. AsmWriteLn(#9#9+StrPas(pai_datablock(hp)^.name)+#9#9'DS.B '+tostr(pai_datablock(hp)^.size));
  276. end;
  277. ait_const_32bit : Begin
  278. AsmWriteLn(#9#9'DC.L'#9+tostr(pai_const(hp)^.value));
  279. end;
  280. ait_const_16bit : Begin
  281. AsmWriteLn(#9#9'DC.W'#9+tostr(pai_const(hp)^.value));
  282. end;
  283. ait_const_8bit : AsmWriteLn(#9#9'DC.B'#9+tostr(pai_const(hp)^.value));
  284. ait_const_symbol : Begin
  285. AsmWriteLn(#9#9+'DC.L '#9+StrPas(pchar(pai_const(hp)^.value)));
  286. end;
  287. ait_const_symbol_offset :
  288. Begin
  289. AsmWrite(#9#9+'DC.L '#9);
  290. AsmWritePChar(pai_const_symbol_offset(hp)^.name);
  291. if pai_const_symbol_offset(hp)^.offset>0 then
  292. AsmWrite('+'+tostr(pai_const_symbol_offset(hp)^.offset))
  293. else if pai_const_symbol_offset(hp)^.offset<0 then
  294. AsmWrite(tostr(pai_const_symbol_offset(hp)^.offset));
  295. AsmLn;
  296. end;
  297. ait_real_64bit : Begin
  298. AsmWriteLn(#9#9'DC.D'#9+double2str(pai_double(hp)^.value));
  299. end;
  300. ait_real_32bit : Begin
  301. AsmWriteLn(#9#9'DC.S'#9+double2str(pai_single(hp)^.value));
  302. end;
  303. { TO SUPPORT SOONER OR LATER!!!
  304. ait_comp : AsmWriteLn(#9#9'DC.D'#9+comp2str(pai_extended(hp)^.value));}
  305. ait_string : begin
  306. counter := 0;
  307. lines := pai_string(hp)^.len div line_length;
  308. { separate lines in different parts }
  309. if pai_string(hp)^.len > 0 then
  310. Begin
  311. for j := 0 to lines-1 do
  312. begin
  313. AsmWrite(#9#9'DC.B'#9);
  314. quoted:=false;
  315. for i:=counter to counter+line_length do
  316. begin
  317. { it is an ascii character. }
  318. if (ord(pai_string(hp)^.str[i])>31) and
  319. (ord(pai_string(hp)^.str[i])<128) and
  320. (pai_string(hp)^.str[i]<>'''') then
  321. begin
  322. if not(quoted) then
  323. begin
  324. if i>counter then
  325. AsmWrite(',');
  326. AsmWrite('''');
  327. end;
  328. AsmWrite(pai_string(hp)^.str[i]);
  329. quoted:=true;
  330. end { if > 31 and < 128 and ord('"') }
  331. else
  332. begin
  333. if quoted then
  334. AsmWrite('''');
  335. if i>counter then
  336. AsmWrite(',');
  337. quoted:=false;
  338. AsmWrite(tostr(ord(pai_string(hp)^.str[i])));
  339. end;
  340. end; { end for i:=0 to... }
  341. if quoted then AsmWrite('''');
  342. AsmLn;
  343. counter := counter+line_length;
  344. end; { end for j:=0 ... }
  345. { do last line of lines }
  346. AsmWrite(#9#9'DC.B'#9);
  347. quoted:=false;
  348. for i:=counter to pai_string(hp)^.len-1 do
  349. begin
  350. { it is an ascii character. }
  351. if (ord(pai_string(hp)^.str[i])>31) and
  352. (ord(pai_string(hp)^.str[i])<128) and
  353. (pai_string(hp)^.str[i]<>'''') then
  354. begin
  355. if not(quoted) then
  356. begin
  357. if i>counter then
  358. AsmWrite(',');
  359. AsmWrite('''');
  360. end;
  361. AsmWrite(pai_string(hp)^.str[i]);
  362. quoted:=true;
  363. end { if > 31 and < 128 and " }
  364. else
  365. begin
  366. if quoted then
  367. AsmWrite('''');
  368. if i>counter then
  369. AsmWrite(',');
  370. quoted:=false;
  371. AsmWrite(tostr(ord(pai_string(hp)^.str[i])));
  372. end;
  373. end; { end for i:=0 to... }
  374. if quoted then AsmWrite('''');
  375. end; { endif }
  376. AsmLn;
  377. end;
  378. ait_label : begin
  379. if assigned(hp^.next) and (pai(hp^.next)^.typ in
  380. [ait_const_32bit,ait_const_16bit,ait_const_8bit,
  381. ait_const_symbol,ait_const_symbol_offset,
  382. ait_real_64bit,ait_real_32bit,ait_string]) then
  383. begin
  384. if not(cs_littlesize in aktglobalswitches) then
  385. AsmWriteLn(#9'ALIGN 4')
  386. else
  387. AsmWriteLn(#9'ALIGN 2');
  388. end;
  389. AsmWrite(lab2str(pai_label(hp)^.l));
  390. if assigned(hp^.next) and not(pai(hp^.next)^.typ in
  391. [ait_const_32bit,ait_const_16bit,ait_const_8bit,
  392. ait_const_symbol,ait_const_symbol_offset,
  393. ait_real_64bit,ait_string]) then
  394. AsmWriteLn(':');
  395. end;
  396. ait_direct : begin
  397. AsmWritePChar(pai_direct(hp)^.str);
  398. AsmLn;
  399. end;
  400. ait_labeled_instruction :
  401. { Labeled instructions are those which don't require an }
  402. { intersegment jump -- jmp/bra/bcc to local labels. }
  403. Begin
  404. { labeled operand }
  405. if pai_labeled(hp)^._op1 = R_NO then
  406. AsmWriteLn(#9+mot_op2str[pai_labeled(hp)^._operator]+#9+lab2str(pai_labeled(hp)^.lab))
  407. else
  408. { labeled operand with register }
  409. AsmWriteLn(#9+mot_op2str[pai_labeled(hp)^._operator]+#9+
  410. mot_reg2str[pai_labeled(hp)^._op1]+','+lab2str(pai_labeled(hp)^.lab))
  411. end;
  412. ait_symbol : begin
  413. { ------------------------------------------------------- }
  414. { ----------- ALIGNMENT FOR ANY NON-BYTE VALUE ---------- }
  415. { ------------- REQUIREMENT FOR 680x0 ------------------- }
  416. { ------------------------------------------------------- }
  417. if assigned(hp^.next) and (pai(hp^.next)^.typ in
  418. [ait_const_32bit,ait_const_16bit,ait_const_8bit,
  419. ait_const_symbol,ait_const_symbol_offset,
  420. ait_real_64bit,ait_real_32bit,ait_string]) then
  421. begin
  422. if not(cs_littlesize in aktglobalswitches) then
  423. AsmWriteLn(#9'ALIGN 4')
  424. else
  425. AsmWriteLn(#9'ALIGN 2');
  426. end;
  427. if assigned(hp^.next) and not(pai(hp^.next)^.typ in
  428. [ait_const_32bit,ait_const_16bit,ait_const_8bit,
  429. ait_const_symbol,ait_const_symbol_offset,
  430. ait_real_64bit,ait_string,ait_real_32bit]) then
  431. { this is a subroutine }
  432. Begin
  433. if pai_symbol(hp)^.is_global then
  434. AsmWriteLn(#9+StrPas(pai_symbol(hp)^.name)+' PROC EXPORT')
  435. else
  436. AsmWriteLn(#9+StrPas(pai_symbol(hp)^.name)+' PROC');
  437. AsmWriteLn(#9'WITH _DATA');
  438. end
  439. else
  440. Begin
  441. if pai_symbol(hp)^.is_global then
  442. AsmWriteLn(#9'EXPORT'#9+StrPas(pai_symbol(hp)^.name))
  443. else
  444. AsmWriteLn(#9'ENTRY'#9+StrPas(pai_symbol(hp)^.name));
  445. AsmWritePChar(pai_symbol(hp)^.name);
  446. end;
  447. end;
  448. ait_instruction : begin
  449. s:=#9+mot_op2str[pai68k(hp)^._operator]+mot_opsize2str[pai68k(hp)^.size];
  450. if pai68k(hp)^.op1t<>top_none then
  451. begin
  452. { call and jmp need an extra handling }
  453. { this code is only called if jmp isn't a labeled instruction }
  454. if pai68k(hp)^._operator in [A_JSR,A_JMP] then
  455. begin
  456. s:=s+#9+getopstr_jmp(pai68k(hp)^.op1t,pai68k(hp)^.op1,importname);
  457. if importname <> '' then
  458. AsmWriteLn(#9+'IMPORT '+importname);
  459. end
  460. else
  461. begin
  462. if pai68k(hp)^.op1t = top_reglist then
  463. s:=s+#9+getopstr(pai68k(hp)^.op1t,@(pai68k(hp)^.reglist))
  464. else
  465. s:=s+#9+getopstr(pai68k(hp)^.op1t,pai68k(hp)^.op1);
  466. if pai68k(hp)^.op2t<>top_none then
  467. begin
  468. if pai68k(hp)^.op2t = top_reglist then
  469. s:=s+','+getopstr(pai68k(hp)^.op2t,@pai68k(hp)^.reglist)
  470. else
  471. s:=s+','+getopstr(pai68k(hp)^.op2t,pai68k(hp)^.op2);
  472. { three operands }
  473. if pai68k(hp)^.op3t<>top_none then
  474. begin
  475. if (pai68k(hp)^._operator = A_DIVSL) or
  476. (pai68k(hp)^._operator = A_DIVUL) or
  477. (pai68k(hp)^._operator = A_MULU) or
  478. (pai68k(hp)^._operator = A_MULS) or
  479. (pai68k(hp)^._operator = A_DIVS) or
  480. (pai68k(hp)^._operator = A_DIVU) then
  481. s:=s+':'+getopstr(pai68k(hp)^.op3t,pai68k(hp)^.op3)
  482. else
  483. s:=s+','+getopstr(pai68k(hp)^.op3t,pai68k(hp)^.op3);
  484. end;
  485. end;
  486. end;
  487. end;
  488. AsmWriteLn(s);
  489. { if this instruction is the last before }
  490. { returning it MIGHT be the end of a }
  491. { pascal subroutine, if this is so, then }
  492. if (pai68k(hp)^._operator = A_RTS) or
  493. (pai68k(hp)^._operator = A_RTD) then
  494. Begin
  495. { if next is not an instruction nor a label }
  496. { this is the end of a procedure probably }
  497. { and not an inline assembler instruction }
  498. if assigned(hp^.next) and (
  499. (pai(hp^.next)^.typ = ait_label) or
  500. (pai(hp^.next)^.typ = ait_instruction) or
  501. (pai(hp^.next)^.typ = ait_labeled_instruction)) then
  502. begin
  503. end
  504. else
  505. begin
  506. AsmWriteLn(#9'ENDWITH');
  507. AsmWriteLn(#9'ENDPROC');
  508. AsmLn;
  509. end;
  510. end;
  511. end;
  512. {$ifdef GDB}
  513. ait_stabn,
  514. ait_stabs,
  515. ait_force_line,
  516. ait_stab_function_name : ;
  517. {$endif GDB}
  518. ait_marker : ;
  519. else
  520. internalerror(10000);
  521. end;
  522. hp:=pai(hp^.next);
  523. end;
  524. end;
  525. procedure tm68kmpwasmlist.WriteAsmList;
  526. begin
  527. {$ifdef EXTDEBUG}
  528. if assigned(current_module^.mainsource) then
  529. comment(v_info,'Start writing MPW-styled assembler output for '+current_module^.mainsource^);
  530. {$endif}
  531. WriteTree(externals);
  532. AsmLn;
  533. AsmWriteLn(#9'_DATA'#9'RECORD');
  534. { write a signature to the file }
  535. AsmWriteLn(#9'ALIGN 4');
  536. (* now in pmodules
  537. {$ifdef EXTDEBUG}
  538. AsmWriteLn(#9'DC.B'#9'''compiled by FPC '+version_string+'\0''');
  539. AsmWriteLn(#9'DC.B'#9'''target: '+target_info.short_name+'\0''');
  540. {$endif EXTDEBUG} *)
  541. WriteTree(datasegment);
  542. WriteTree(consts);
  543. WriteTree(bsssegment);
  544. AsmWriteLn(#9'ENDR');
  545. AsmLn;
  546. WriteTree(codesegment);
  547. AsmLn;
  548. AsmWriteLn(#9'END');
  549. {$ifdef EXTDEBUG}
  550. if assigned(current_module^.mainsource) then
  551. comment(v_info,'Done writing MPW-styled assembler output for '+current_module^.mainsource^);
  552. {$endif}
  553. end;
  554. end.
  555. {
  556. $Log$
  557. Revision 1.8 1998-12-11 00:02:42 peter
  558. + globtype,tokens,version unit splitted from globals
  559. Revision 1.7 1998/11/12 11:19:39 pierre
  560. * fix for first line of function break
  561. Revision 1.6 1998/10/29 11:35:39 florian
  562. * some dll support for win32
  563. * fixed assembler writing for PalmOS
  564. Revision 1.5 1998/10/20 08:06:37 pierre
  565. * several memory corruptions due to double freemem solved
  566. => never use p^.loc.location:=p^.left^.loc.location;
  567. + finally I added now by default
  568. that ra386dir translates global and unit symbols
  569. + added a first field in tsymtable and
  570. a nextsym field in tsym
  571. (this allows to obtain ordered type info for
  572. records and objects in gdb !)
  573. Revision 1.4 1998/10/14 15:56:42 pierre
  574. * all references to comp suppressed for m68k
  575. Revision 1.3 1998/10/12 12:20:47 pierre
  576. + added tai_const_symbol_offset
  577. for r : pointer = @var.field;
  578. * better message for different arg names on implementation
  579. of function
  580. Revision 1.2 1998/10/07 04:26:31 carl
  581. + initial rev of MPW asm writer
  582. Revision 1.1.2.1 1998/10/07 01:48:59 carl
  583. * initial revision of MPW asm writer
  584. Revision 1.1.1.1.2.3 1998/09/14 18:56:26 carl
  585. * alignment bugfix for bytes
  586. Revision 1.1.1.1.2.2 1998/07/01 13:58:25 carl
  587. ?
  588. Revision 1.1.1.1 1998/03/25 11:18:16 root
  589. * Restored version
  590. Revision 1.3 1998/03/22 12:45:37 florian
  591. * changes of Carl-Eric to m68k target commit:
  592. - wrong nodes because of the new string cg in intel, I had to create
  593. this under m68k also ... had to work it out to fix potential alignment
  594. problems --> this removes the crash of the m68k compiler.
  595. - added absolute addressing in m68k assembler (required for Amiga startup)
  596. - fixed alignment problems (because of byte return values, alignment
  597. would not be always valid) -- is this ok if i change the offset if odd in
  598. setfirsttemp ?? -- it seems ok...
  599. Revision 1.2 1998/03/10 04:23:33 carl
  600. - removed in because can cause range check errors under BP
  601. Revision 1.1 1998/03/10 01:26:10 peter
  602. + new uniform names
  603. }