systems.pas 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. This unit contains information about the target systems supported
  5. (these are not processor specific)
  6. This program is free software; you can redistribute it and/or modify
  7. iu under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge- MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. unit systems;
  20. {$i fpcdefs.inc}
  21. interface
  22. type
  23. tendian = (endian_little,endian_big);
  24. (*
  25. IMPORTANT NOTE:
  26. The value of this enumeration is stored in PPU files.
  27. Therefore adding new CPU targets should not change the
  28. values of the pre-existing targets. (CEC)
  29. FURTHERMORE : Make sure that this branch values, are
  30. consistant with the main branch version always.
  31. *)
  32. tsystemcpu=
  33. (
  34. cpu_no, { 0 }
  35. cpu_i386, { 1 }
  36. cpu_m68k, { 2 }
  37. cpu_alpha, { 3 }
  38. cpu_powerpc, { 4 }
  39. cpu_sparc, { 5 }
  40. cpu_vm, { 6 }
  41. cpu_iA64, { 7 }
  42. cpu_x86_64, { 8 }
  43. cpu_mips, { 9 }
  44. cpu_arm { 10 }
  45. );
  46. TSection=(sec_none,
  47. sec_code,sec_data,sec_bss,
  48. sec_idata2,sec_idata4,sec_idata5,sec_idata6,sec_idata7,sec_edata,
  49. sec_stab,sec_stabstr,sec_common
  50. );
  51. tasmmode= (asmmode_none
  52. { direct output with minimal parsing }
  53. ,asmmode_direct
  54. { standard assembler (cpu dependant) with full parsing }
  55. ,asmmode_standard
  56. ,asmmode_i386_att
  57. ,asmmode_i386_intel
  58. );
  59. (* IMPORTANT NOTE:
  60. the integer value of this enum is stored in PPU
  61. files to recognize the target, so if you add new targets
  62. allways add them at end PM
  63. FURTHERMORE : Make sure that this branch values are
  64. consistant with the main branch version always. (CEC)
  65. *)
  66. type
  67. tsystem =
  68. (
  69. system_none, { 0 }
  70. obsolete_system_i386_GO32V1,{ 1 }
  71. system_i386_GO32V2, { 2 }
  72. system_i386_linux, { 3 }
  73. system_i386_OS2, { 4 }
  74. system_i386_Win32, { 5 }
  75. system_i386_freebsd, { 6 }
  76. system_m68k_Amiga, { 7 }
  77. system_m68k_Atari, { 8 }
  78. system_m68k_Mac, { 9 }
  79. system_m68k_linux, { 10 }
  80. system_m68k_PalmOS, { 11 }
  81. system_alpha_linux, { 12 }
  82. system_powerpc_linux, { 13 }
  83. system_powerpc_macos, { 14 }
  84. system_i386_sunos, { 15 }
  85. system_i386_beos, { 16 }
  86. system_i386_netbsd, { 17 }
  87. system_m68k_netbsd, { 18 }
  88. system_i386_Netware, { 19 }
  89. system_i386_qnx, { 20 }
  90. system_i386_wdosx, { 21 }
  91. system_sparc_sunos, { 22 }
  92. system_sparc_linux, { 23 }
  93. system_x86_64_linux { 24 }
  94. );
  95. tasm = (as_none
  96. ,as_gas { standard gnu assembler }
  97. ,as_i386_as_aout
  98. ,as_i386_asw
  99. ,as_i386_nasmcoff
  100. ,as_i386_nasmwin32
  101. ,as_i386_nasmwdosx
  102. ,as_i386_nasmelf
  103. ,as_i386_nasmobj
  104. ,as_i386_tasm
  105. ,as_i386_masm
  106. ,as_i386_coff
  107. ,as_i386_pecoff
  108. ,as_i386_elf32
  109. ,as_i386_pecoffwdosx
  110. ,as_m68k_mit
  111. ,as_powerpc_mpw
  112. );
  113. tar = (ar_none
  114. ,ar_gnu_ar,ar_gnu_arw
  115. );
  116. tres = (res_none
  117. ,res_gnu_windres,res_emxbind
  118. );
  119. tscripttype = (script_none
  120. ,script_dos,script_unix,script_amiga
  121. );
  122. {*****************************************************************************
  123. Structures
  124. *****************************************************************************}
  125. type
  126. { Abstract linker class which is implemented in link module }
  127. TAbstractLinker = class
  128. end;
  129. TAbstractLinkerClass = class of TABstractLinker;
  130. { Abstract assembler class which is implemented in assemble module }
  131. TAbstractAssembler = class
  132. end;
  133. TAbstractAssemblerClass = class of TAbstractAssembler;
  134. palignmentinfo = ^talignmentinfo;
  135. talignmentinfo = packed record
  136. procalign,
  137. loopalign,
  138. jumpalign,
  139. constalignmin,
  140. constalignmax,
  141. varalignmin,
  142. varalignmax,
  143. localalignmin,
  144. localalignmax,
  145. paraalign,
  146. recordalignmin,
  147. recordalignmax,
  148. maxCrecordalign : longint;
  149. end;
  150. pasminfo = ^tasminfo;
  151. tasminfo = packed record
  152. id : tasm;
  153. idtxt : string[9];
  154. asmbin : string[8];
  155. asmcmd : string[50];
  156. supported_target : tsystem;
  157. outputbinary,
  158. allowdirect,
  159. needar,
  160. labelprefix_only_inside_procedure : boolean;
  161. labelprefix : string[3];
  162. comment : string[2];
  163. secnames : array[TSection] of string[20];
  164. end;
  165. parinfo = ^tarinfo;
  166. tarinfo = packed record
  167. id : tar;
  168. arcmd : string[50];
  169. end;
  170. presinfo = ^tresinfo;
  171. tresinfo = packed record
  172. id : tres;
  173. resbin : string[8];
  174. rescmd : string[50];
  175. end;
  176. tsystemflags = (tf_none,
  177. tf_under_development,
  178. tf_need_export,tf_needs_isconsole
  179. ,tf_code_small,tf_static_reg_based
  180. );
  181. psysteminfo = ^tsysteminfo;
  182. tsysteminfo = packed record
  183. system : tsystem;
  184. name : string[30];
  185. shortname : string[9];
  186. flags : set of tsystemflags;
  187. cpu : tsystemcpu;
  188. unit_env : string[12];
  189. extradefines : string[40];
  190. sourceext,
  191. pasext,
  192. exeext,
  193. defext,
  194. scriptext,
  195. smartext,
  196. unitext,
  197. unitlibext,
  198. asmext,
  199. objext,
  200. resext,
  201. resobjext : string[4];
  202. sharedlibext : string[10];
  203. staticlibext,
  204. staticlibprefix : string[4];
  205. sharedlibprefix : string[4];
  206. sharedClibext : string[10];
  207. staticClibext,
  208. staticClibprefix : string[4];
  209. sharedClibprefix : string[4];
  210. Cprefix : string[2];
  211. newline : string[2];
  212. dirsep : char;
  213. files_case_relevent : boolean;
  214. assem : tasm;
  215. assemextern : tasm; { external assembler, used by -a }
  216. link : tabstractlinkerclass;
  217. linkextern : tabstractlinkerclass; { external linker, used by -s }
  218. ar : tar;
  219. res : tres;
  220. script : tscripttype;
  221. endian : tendian;
  222. alignment : talignmentinfo;
  223. {
  224. Offset from the argument pointer register to the first
  225. argument's address. On some machines it may depend on
  226. the data type of the function.
  227. (see also FIRST_PARM_OFFSET in GCC source)
  228. }
  229. first_parm_offset : longint;
  230. heapsize,
  231. stacksize : longint;
  232. DllScanSupported : boolean;
  233. use_function_relative_addresses : boolean;
  234. end;
  235. pasmmodeinfo = ^tasmmodeinfo;
  236. tasmmodeinfo = packed record
  237. id : tasmmode;
  238. idtxt : string[8];
  239. end;
  240. const
  241. { alias for supported_target field in tasminfo }
  242. system_any = system_none;
  243. var
  244. targetinfos : array[tsystem] of psysteminfo;
  245. asminfos : array[tasm] of pasminfo;
  246. arinfos : array[tar] of parinfo;
  247. resinfos : array[tres] of presinfo;
  248. asmmodeinfos : array[tasmmode] of pasmmodeinfo;
  249. source_info : tsysteminfo;
  250. target_cpu : tsystemcpu;
  251. target_info : tsysteminfo;
  252. target_asm : tasminfo;
  253. target_ar : tarinfo;
  254. target_res : tresinfo;
  255. target_path : string[12]; { for rtl/<X>/,fcl/<X>/, etc. }
  256. function set_target(t:tsystem):boolean;
  257. function set_target_asm(t:tasm):boolean;
  258. function set_target_ar(t:tar):boolean;
  259. function set_target_res(t:tres):boolean;
  260. function set_target_by_string(const s : string) : boolean;
  261. function set_target_asm_by_string(const s : string) : boolean;
  262. function set_asmmode_by_string(const s:string;var t:tasmmode):boolean;
  263. procedure set_source_info(const ti : tsysteminfo);
  264. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  265. procedure RegisterTarget(const r:tsysteminfo);
  266. procedure RegisterAsmMode(const r:tasmmodeinfo);
  267. procedure RegisterRes(const r:tresinfo);
  268. procedure RegisterAr(const r:tarinfo);
  269. { Register the external linker. This routine is called to setup the
  270. class to use for the linker. It returns the tsysteminfo structure
  271. updated with the correct linker class for external linking.
  272. }
  273. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  274. { Register the internal linker. This routine is called to setup the
  275. class to use for the linker. It returns the tsysteminfo structure
  276. updated with the correct linker class for internal linking.
  277. If internal linking is not supported, this class can be set
  278. to nil.
  279. }
  280. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  281. procedure InitSystems;
  282. implementation
  283. uses
  284. cutils;
  285. {****************************************************************************
  286. Target setting
  287. ****************************************************************************}
  288. function set_target(t:tsystem):boolean;
  289. begin
  290. set_target:=false;
  291. if assigned(targetinfos[t]) then
  292. begin
  293. target_info:=targetinfos[t]^;
  294. set_target_asm(target_info.assem);
  295. set_target_ar(target_info.ar);
  296. set_target_res(target_info.res);
  297. target_path:=lower(target_info.shortname);
  298. target_cpu:=target_info.cpu;
  299. set_target:=true;
  300. exit;
  301. end;
  302. end;
  303. function set_target_asm(t:tasm):boolean;
  304. begin
  305. set_target_asm:=false;
  306. if assigned(asminfos[t]) then
  307. begin
  308. target_asm:=asminfos[t]^;
  309. set_target_asm:=true;
  310. exit;
  311. end;
  312. end;
  313. function set_target_ar(t:tar):boolean;
  314. begin
  315. set_target_ar:=false;
  316. if assigned(arinfos[t]) then
  317. begin
  318. target_ar:=arinfos[t]^;
  319. set_target_ar:=true;
  320. exit;
  321. end;
  322. end;
  323. function set_target_res(t:tres):boolean;
  324. begin
  325. set_target_res:=false;
  326. if assigned(resinfos[t]) then
  327. begin
  328. target_res:=resinfos[t]^;
  329. set_target_res:=true;
  330. exit;
  331. end;
  332. end;
  333. function set_target_by_string(const s : string) : boolean;
  334. var
  335. hs : string;
  336. t : tsystem;
  337. begin
  338. set_target_by_string:=false;
  339. { this should be case insensitive !! PM }
  340. hs:=upper(s);
  341. for t:=low(tsystem) to high(tsystem) do
  342. if assigned(targetinfos[t]) and
  343. (upper(targetinfos[t]^.shortname)=hs) then
  344. begin
  345. set_target_by_string:=set_target(t);
  346. exit;
  347. end;
  348. end;
  349. function set_target_asm_by_string(const s : string) : boolean;
  350. var
  351. hs : string;
  352. t : tasm;
  353. begin
  354. set_target_asm_by_string:=false;
  355. { this should be case insensitive !! PM }
  356. hs:=upper(s);
  357. for t:=low(tasm) to high(tasm) do
  358. if assigned(asminfos[t]) and
  359. (asminfos[t]^.idtxt=hs) then
  360. begin
  361. set_target_asm_by_string:=set_target_asm(t);
  362. exit;
  363. end;
  364. end;
  365. function set_asmmode_by_string(const s:string;var t:tasmmode):boolean;
  366. var
  367. hs : string;
  368. ht : tasmmode;
  369. begin
  370. set_asmmode_by_string:=false;
  371. { this should be case insensitive !! PM }
  372. hs:=upper(s);
  373. for ht:=low(tasmmode) to high(tasmmode) do
  374. if assigned(asmmodeinfos[ht]) and
  375. (asmmodeinfos[ht]^.idtxt=hs) then
  376. begin
  377. t:=asmmodeinfos[ht]^.id;
  378. set_asmmode_by_string:=true;
  379. end;
  380. end;
  381. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  382. begin
  383. with d do
  384. begin
  385. { general update rules:
  386. minimum: if higher then update
  387. maximum: if lower then update or if undefined then update }
  388. if s.procalign>procalign then
  389. procalign:=s.procalign;
  390. if s.loopalign>loopalign then
  391. loopalign:=s.loopalign;
  392. if s.jumpalign>jumpalign then
  393. jumpalign:=s.jumpalign;
  394. if s.constalignmin>constalignmin then
  395. constalignmin:=s.constalignmin;
  396. if (constalignmax=0) or
  397. ((s.constalignmax>0) and (s.constalignmax<constalignmax)) then
  398. constalignmax:=s.constalignmax;
  399. if s.varalignmin>varalignmin then
  400. varalignmin:=s.varalignmin;
  401. if (varalignmax=0) or
  402. ((s.varalignmax>0) and (s.varalignmax<varalignmax)) then
  403. varalignmax:=s.varalignmax;
  404. if s.localalignmin>localalignmin then
  405. localalignmin:=s.localalignmin;
  406. if (localalignmax=0) or
  407. ((s.localalignmax>0) and (s.localalignmax<localalignmax)) then
  408. localalignmax:=s.localalignmax;
  409. if s.paraalign>paraalign then
  410. paraalign:=s.paraalign;
  411. if s.recordalignmin>recordalignmin then
  412. recordalignmin:=s.recordalignmin;
  413. if (recordalignmax=0) or
  414. ((s.recordalignmax>0) and (s.recordalignmax<recordalignmax)) then
  415. recordalignmax:=s.recordalignmax;
  416. if (maxCrecordalign=0) or
  417. ((s.maxCrecordalign>0) and (s.maxCrecordalign<maxCrecordalign)) then
  418. maxCrecordalign:=s.maxCrecordalign;
  419. end;
  420. end;
  421. {****************************************************************************
  422. Target registration
  423. ****************************************************************************}
  424. procedure RegisterTarget(const r:tsysteminfo);
  425. var
  426. t : tsystem;
  427. begin
  428. t:=r.system;
  429. if assigned(targetinfos[t]) then
  430. writeln('Warning: Target is already registered!')
  431. else
  432. Getmem(targetinfos[t],sizeof(tsysteminfo));
  433. targetinfos[t]^:=r;
  434. end;
  435. procedure RegisterAsmmode(const r:tasmmodeinfo);
  436. var
  437. t : tasmmode;
  438. begin
  439. t:=r.id;
  440. if assigned(asmmodeinfos[t]) then
  441. writeln('Warning: Asmmode is already registered!')
  442. else
  443. Getmem(asmmodeinfos[t],sizeof(tasmmodeinfo));
  444. asmmodeinfos[t]^:=r;
  445. end;
  446. procedure RegisterRes(const r:tresinfo);
  447. var
  448. t : tres;
  449. begin
  450. t:=r.id;
  451. if assigned(resinfos[t]) then
  452. writeln('Warning: resourcecompiler is already registered!')
  453. else
  454. Getmem(resinfos[t],sizeof(tresinfo));
  455. resinfos[t]^:=r;
  456. end;
  457. procedure RegisterAr(const r:tarinfo);
  458. var
  459. t : tar;
  460. begin
  461. t:=r.id;
  462. if assigned(arinfos[t]) then
  463. writeln('Warning: ar is already registered!')
  464. else
  465. Getmem(arinfos[t],sizeof(tarinfo));
  466. arinfos[t]^:=r;
  467. end;
  468. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  469. begin
  470. system_info.linkextern := c;
  471. end;
  472. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  473. begin
  474. system_info.link := c;
  475. end;
  476. procedure DeregisterInfos;
  477. var
  478. assem : tasm;
  479. target : tsystem;
  480. ar : tar;
  481. asmmode : tasmmode;
  482. res : tres;
  483. begin
  484. for target:=low(tsystem) to high(tsystem) do
  485. if assigned(targetinfos[target]) then
  486. begin
  487. freemem(targetinfos[target],sizeof(tsysteminfo));
  488. targetinfos[target]:=nil;
  489. end;
  490. for assem:=low(tasm) to high(tasm) do
  491. if assigned(asminfos[assem]) then
  492. begin
  493. freemem(asminfos[assem],sizeof(tasminfo));
  494. asminfos[assem]:=nil;
  495. end;
  496. for ar:=low(tar) to high(tar) do
  497. if assigned(arinfos[ar]) then
  498. begin
  499. freemem(arinfos[ar],sizeof(tarinfo));
  500. arinfos[ar]:=nil;
  501. end;
  502. for res:=low(tres) to high(tres) do
  503. if assigned(resinfos[res]) then
  504. begin
  505. freemem(resinfos[res],sizeof(tresinfo));
  506. resinfos[res]:=nil;
  507. end;
  508. for asmmode:=low(tasmmode) to high(tasmmode) do
  509. if assigned(asmmodeinfos[asmmode]) then
  510. begin
  511. freemem(asmmodeinfos[asmmode],sizeof(tasmmodeinfo));
  512. asmmodeinfos[asmmode]:=nil;
  513. end;
  514. end;
  515. {****************************************************************************
  516. Initialization of default target
  517. ****************************************************************************}
  518. procedure default_target(t:tsystem);
  519. begin
  520. set_target(t);
  521. if source_info.name='' then
  522. source_info:=target_info;
  523. end;
  524. procedure set_source_info(const ti : tsysteminfo);
  525. begin
  526. { can't use message() here (PFV) }
  527. if source_info.name<>'' then
  528. Writeln('Warning: Source OS Redefined!');
  529. source_info:=ti;
  530. end;
  531. procedure InitSystems;
  532. begin
  533. { Now default target, this is dependent on the i386 or m68k define,
  534. when the define is the same as the current cpu then we use the source
  535. os, else we pick a default }
  536. {$ifdef i386}
  537. {$ifdef cpu86}
  538. default_target(source_info.system);
  539. {$else cpu86}
  540. default_target(target_i386_linux);
  541. {$endif cpu86}
  542. {$endif i386}
  543. {$ifdef x86_64}
  544. {$ifdef cpu86_64}
  545. default_target(source_info.system);
  546. {$else cpu86_64}
  547. default_target(target_x86_64_linux);
  548. {$endif cpu86_64}
  549. {$endif x86_64}
  550. {$ifdef m68k}
  551. {$ifdef cpu68}
  552. default_target(source_info.target);
  553. {$else cpu68}
  554. default_target(system_m68k_linux);
  555. {$endif cpu68}
  556. {$endif m68k}
  557. {$ifdef alpha}
  558. {$ifdef cpualpha}
  559. default_target(source_info.system);
  560. {$else cpualpha}
  561. default_target(target_alpha_linux);
  562. {$endif cpualpha}
  563. {$endif alpha}
  564. {$ifdef powerpc}
  565. {$ifdef cpuppc}
  566. default_target(source_info.system);
  567. {$else cpuppc}
  568. default_target(system_powerpc_linux);
  569. {$endif cpuppc}
  570. {$endif powerpc}
  571. {$IFDEF sparc}
  572. default_target(system_sparc_linux);
  573. {$ENDIF sparc}
  574. end;
  575. initialization
  576. source_info.name:='';
  577. finalization
  578. DeregisterInfos;
  579. end.
  580. {
  581. $Log$
  582. Revision 1.51 2002-08-12 15:08:40 carl
  583. + stab register indexes for powerpc (moved from gdb to cpubase)
  584. + tprocessor enumeration moved to cpuinfo
  585. + linker in target_info is now a class
  586. * many many updates for m68k (will soon start to compile)
  587. - removed some ifdef or correct them for correct cpu
  588. Revision 1.50 2002/08/10 14:46:31 carl
  589. + moved target_cpu_string to cpuinfo
  590. * renamed asmmode enum.
  591. * assembler reader has now less ifdef's
  592. * move from nppcmem.pas -> ncgmem.pas vec. node.
  593. Revision 1.49 2002/07/28 20:45:22 florian
  594. + added direct assembler reader for PowerPC
  595. Revision 1.48 2002/07/26 21:15:42 florian
  596. * rewrote the system handling
  597. Revision 1.47 2002/07/04 20:43:02 florian
  598. * first x86-64 patches
  599. Revision 1.46 2002/07/01 18:46:29 peter
  600. * internal linker
  601. * reorganized aasm layer
  602. Revision 1.45 2002/05/18 13:34:21 peter
  603. * readded missing revisions
  604. Revision 1.44 2002/05/16 19:46:45 carl
  605. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  606. + try to fix temp allocation (still in ifdef)
  607. + generic constructor calls
  608. + start of tassembler / tmodulebase class cleanup
  609. Revision 1.42 2002/05/06 19:52:04 carl
  610. + added more patches from Mazen for SPARC port
  611. Revision 1.41 2002/04/24 16:08:30 carl
  612. * fix compilation problem
  613. Revision 1.40 2002/04/20 21:32:26 carl
  614. + generic FPC_CHECKPOINTER
  615. + first parameter offset in stack now portable
  616. * rename some constants
  617. + move some cpu stuff to other units
  618. - remove unused constents
  619. * fix stacksize for some targets
  620. * fix generic size problems which depend now on EXTEND_SIZE constant
  621. Revision 1.39 2002/04/15 19:08:22 carl
  622. + target_info.size_of_pointer -> pointer_size
  623. + some cleanup of unused types/variables
  624. Revision 1.38 2002/04/14 16:56:30 carl
  625. - remove duplicate comment
  626. }