systems.pas 24 KB

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