systems.pas 26 KB

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