systems.pas 22 KB

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