systems.pas 25 KB

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