systems.pas 22 KB

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