systems.pas 25 KB

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