systems.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. This unit contains information about the target systems supported
  5. (these are not processor specific)
  6. This program is free software; you can redistribute it and/or modify
  7. iu under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge- MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. unit systems;
  20. {$i fpcdefs.inc}
  21. interface
  22. type
  23. tendian = (endian_little,endian_big);
  24. (*
  25. IMPORTANT NOTE:
  26. The value of this enumeration is stored in PPU files.
  27. Therefore adding new CPU targets should not change the
  28. values of the pre-existing targets. (CEC)
  29. FURTHERMORE : Make sure that this branch values, are
  30. consistant with the main branch version always.
  31. *)
  32. tsystemcpu=
  33. (
  34. cpu_no, { 0 }
  35. cpu_i386, { 1 }
  36. cpu_m68k, { 2 }
  37. cpu_alpha, { 3 }
  38. cpu_powerpc, { 4 }
  39. cpu_sparc, { 5 }
  40. cpu_vm, { 6 }
  41. cpu_iA64, { 7 }
  42. cpu_x86_64, { 8 }
  43. cpu_mips, { 9 }
  44. cpu_arm { 10 }
  45. );
  46. TSection=(sec_none,
  47. sec_code,sec_data,sec_bss,
  48. sec_idata2,sec_idata4,sec_idata5,sec_idata6,sec_idata7,sec_edata,
  49. sec_stab,sec_stabstr,sec_common
  50. );
  51. tasmmode= (asmmode_none
  52. { direct output with minimal parsing }
  53. ,asmmode_direct
  54. { standard assembler (cpu dependant) with full parsing }
  55. ,asmmode_standard
  56. ,asmmode_i386_att
  57. ,asmmode_i386_intel
  58. ,asmmode_ppc_gas
  59. ,asmmode_ppc_motorola
  60. );
  61. (* IMPORTANT NOTE:
  62. the integer value of this enum is stored in PPU
  63. files to recognize the target, so if you add new targets
  64. allways add them at end PM
  65. FURTHERMORE : Make sure that this branch values are
  66. consistant with the main branch version always. (CEC)
  67. *)
  68. type
  69. tsystem =
  70. (
  71. system_none, { 0 }
  72. obsolete_system_i386_GO32V1,{ 1 }
  73. system_i386_GO32V2, { 2 }
  74. system_i386_linux, { 3 }
  75. system_i386_OS2, { 4 }
  76. system_i386_Win32, { 5 }
  77. system_i386_freebsd, { 6 }
  78. system_m68k_Amiga, { 7 }
  79. system_m68k_Atari, { 8 }
  80. system_m68k_Mac, { 9 }
  81. system_m68k_linux, { 10 }
  82. system_m68k_PalmOS, { 11 }
  83. system_alpha_linux, { 12 }
  84. system_powerpc_linux, { 13 }
  85. system_powerpc_macos, { 14 }
  86. system_i386_sunos, { 15 }
  87. system_i386_beos, { 16 }
  88. system_i386_netbsd, { 17 }
  89. system_m68k_netbsd, { 18 }
  90. system_i386_Netware, { 19 }
  91. system_i386_qnx, { 20 }
  92. system_i386_wdosx, { 21 }
  93. system_sparc_sunos, { 22 }
  94. system_sparc_linux, { 23 }
  95. target_i386_openbsd, { 24 }
  96. target_m68k_openbsd, { 25 }
  97. system_x86_64_linux, { 26 }
  98. system_powerpc_darwin, { 27 }
  99. system_i386_EMX, { 28 }
  100. system_powerpc_netbsd, { 29 }
  101. system_powerpc_openbsd { 30 }
  102. );
  103. tasm = (as_none
  104. ,as_gas { standard gnu assembler }
  105. ,as_i386_as_aout
  106. ,as_i386_asw
  107. ,as_i386_nasmcoff
  108. ,as_i386_nasmwin32
  109. ,as_i386_nasmwdosx
  110. ,as_i386_nasmelf
  111. ,as_i386_nasmobj
  112. ,as_i386_tasm
  113. ,as_i386_masm
  114. ,as_i386_coff
  115. ,as_i386_pecoff
  116. ,as_i386_elf32
  117. ,as_i386_pecoffwdosx
  118. ,as_m68k_mit
  119. ,as_powerpc_mpw
  120. ,as_x86_64_as
  121. );
  122. tar = (ar_none
  123. ,ar_gnu_ar,ar_gnu_arw,ar_mpw_ar
  124. );
  125. tres = (res_none
  126. ,res_gnu_windres,res_emxbind
  127. ,res_m68k_palmos,res_m68k_mpw
  128. ,res_powerpc_mpw
  129. );
  130. tscripttype = (script_none
  131. ,script_dos,script_unix,script_amiga
  132. );
  133. tabi = (abi_default
  134. ,abi_powerpc_sysv,abi_powerpc_aix,abi_powerpc_macos
  135. );
  136. {*****************************************************************************
  137. Structures
  138. *****************************************************************************}
  139. type
  140. { Abstract linker class which is implemented in link module }
  141. TAbstractLinker = class
  142. end;
  143. TAbstractLinkerClass = class of TABstractLinker;
  144. { Abstract assembler class which is implemented in assemble module }
  145. TAbstractAssembler = class
  146. end;
  147. TAbstractAssemblerClass = class of TAbstractAssembler;
  148. palignmentinfo = ^talignmentinfo;
  149. talignmentinfo = packed record
  150. procalign,
  151. loopalign,
  152. jumpalign,
  153. constalignmin,
  154. constalignmax,
  155. varalignmin,
  156. varalignmax,
  157. localalignmin,
  158. localalignmax,
  159. paraalign,
  160. recordalignmin,
  161. recordalignmax,
  162. maxCrecordalign : longint;
  163. end;
  164. pasminfo = ^tasminfo;
  165. tasminfo = packed record
  166. id : tasm;
  167. idtxt : string[9];
  168. asmbin : string[8];
  169. asmcmd : string[50];
  170. supported_target : tsystem;
  171. outputbinary,
  172. allowdirect,
  173. needar,
  174. labelprefix_only_inside_procedure : boolean;
  175. labelprefix : string[3];
  176. comment : string[2];
  177. secnames : array[TSection] of string[20];
  178. end;
  179. parinfo = ^tarinfo;
  180. tarinfo = packed record
  181. id : tar;
  182. arcmd : string[50];
  183. end;
  184. presinfo = ^tresinfo;
  185. tresinfo = packed record
  186. id : tres;
  187. resbin : string[8];
  188. rescmd : string[50];
  189. end;
  190. tsystemflags = (tf_none,
  191. tf_under_development,
  192. tf_need_export,tf_needs_isconsole
  193. ,tf_code_small,tf_static_reg_based
  194. );
  195. psysteminfo = ^tsysteminfo;
  196. tsysteminfo = packed record
  197. system : tsystem;
  198. name : string[30];
  199. shortname : string[9];
  200. flags : set of tsystemflags;
  201. cpu : tsystemcpu;
  202. unit_env : string[12];
  203. extradefines : string[40];
  204. sourceext,
  205. pasext,
  206. exeext,
  207. defext,
  208. scriptext,
  209. smartext,
  210. unitext,
  211. unitlibext,
  212. asmext,
  213. objext,
  214. resext,
  215. resobjext : string[4];
  216. sharedlibext : string[10];
  217. staticlibext,
  218. staticlibprefix : string[4];
  219. sharedlibprefix : string[4];
  220. sharedClibext : string[10];
  221. staticClibext,
  222. staticClibprefix : string[4];
  223. sharedClibprefix : string[4];
  224. Cprefix : string[2];
  225. newline : string[2];
  226. dirsep : char;
  227. files_case_relevent : boolean;
  228. assem : tasm;
  229. assemextern : tasm; { external assembler, used by -a }
  230. link : tabstractlinkerclass;
  231. linkextern : tabstractlinkerclass; { external linker, used by -s }
  232. ar : tar;
  233. res : tres;
  234. script : tscripttype;
  235. endian : tendian;
  236. alignment : talignmentinfo;
  237. {
  238. Offset from the argument pointer register to the first
  239. argument's address. On some machines it may depend on
  240. the data type of the function.
  241. (see also FIRST_PARM_OFFSET in GCC source)
  242. }
  243. first_parm_offset : longint;
  244. heapsize,
  245. stacksize : longint;
  246. DllScanSupported : boolean;
  247. use_function_relative_addresses : boolean;
  248. abi : tabi;
  249. end;
  250. pasmmodeinfo = ^tasmmodeinfo;
  251. tasmmodeinfo = packed record
  252. id : tasmmode;
  253. idtxt : string[8];
  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. asminfos : array[tasm] of pasminfo;
  261. arinfos : array[tar] of parinfo;
  262. resinfos : array[tres] of presinfo;
  263. asmmodeinfos : array[tasmmode] of pasmmodeinfo;
  264. source_info : tsysteminfo;
  265. target_cpu : tsystemcpu;
  266. target_info : tsysteminfo;
  267. target_asm : tasminfo;
  268. target_ar : tarinfo;
  269. target_res : tresinfo;
  270. target_path : string[12]; { for rtl/<X>/,fcl/<X>/, etc. }
  271. function set_target(t:tsystem):boolean;
  272. function set_target_asm(t:tasm):boolean;
  273. function set_target_ar(t:tar):boolean;
  274. function set_target_res(t:tres):boolean;
  275. function set_target_by_string(const s : string) : boolean;
  276. function set_target_asm_by_string(const s : string) : boolean;
  277. function set_asmmode_by_string(const s:string;var t:tasmmode):boolean;
  278. procedure set_source_info(const ti : tsysteminfo);
  279. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  280. procedure RegisterTarget(const r:tsysteminfo);
  281. procedure RegisterAsmMode(const r:tasmmodeinfo);
  282. procedure RegisterRes(const r:tresinfo);
  283. procedure RegisterAr(const r:tarinfo);
  284. { Register the external linker. This routine is called to setup the
  285. class to use for the linker. It returns the tsysteminfo structure
  286. updated with the correct linker class for external linking.
  287. }
  288. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  289. { Register the internal linker. This routine is called to setup the
  290. class to use for the linker. It returns the tsysteminfo structure
  291. updated with the correct linker class for internal linking.
  292. If internal linking is not supported, this class can be set
  293. to nil.
  294. }
  295. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  296. procedure InitSystems;
  297. implementation
  298. uses
  299. cutils;
  300. {****************************************************************************
  301. Target setting
  302. ****************************************************************************}
  303. function set_target(t:tsystem):boolean;
  304. begin
  305. set_target:=false;
  306. if assigned(targetinfos[t]) then
  307. begin
  308. target_info:=targetinfos[t]^;
  309. set_target_asm(target_info.assem);
  310. set_target_ar(target_info.ar);
  311. set_target_res(target_info.res);
  312. target_path:=lower(target_info.shortname);
  313. target_cpu:=target_info.cpu;
  314. set_target:=true;
  315. exit;
  316. end;
  317. end;
  318. function set_target_asm(t:tasm):boolean;
  319. begin
  320. set_target_asm:=false;
  321. if assigned(asminfos[t]) then
  322. begin
  323. target_asm:=asminfos[t]^;
  324. set_target_asm:=true;
  325. exit;
  326. end;
  327. end;
  328. function set_target_ar(t:tar):boolean;
  329. begin
  330. set_target_ar:=false;
  331. if assigned(arinfos[t]) then
  332. begin
  333. target_ar:=arinfos[t]^;
  334. set_target_ar:=true;
  335. exit;
  336. end;
  337. end;
  338. function set_target_res(t:tres):boolean;
  339. begin
  340. set_target_res:=false;
  341. if assigned(resinfos[t]) then
  342. begin
  343. target_res:=resinfos[t]^;
  344. set_target_res:=true;
  345. exit;
  346. end;
  347. end;
  348. function set_target_by_string(const s : string) : boolean;
  349. var
  350. hs : string;
  351. t : tsystem;
  352. begin
  353. set_target_by_string:=false;
  354. { this should be case insensitive !! PM }
  355. hs:=upper(s);
  356. for t:=low(tsystem) to high(tsystem) do
  357. if assigned(targetinfos[t]) and
  358. (upper(targetinfos[t]^.shortname)=hs) then
  359. begin
  360. set_target_by_string:=set_target(t);
  361. exit;
  362. end;
  363. end;
  364. function set_target_asm_by_string(const s : string) : boolean;
  365. var
  366. hs : string;
  367. t : tasm;
  368. begin
  369. set_target_asm_by_string:=false;
  370. { this should be case insensitive !! PM }
  371. hs:=upper(s);
  372. for t:=low(tasm) to high(tasm) do
  373. if assigned(asminfos[t]) and
  374. (asminfos[t]^.idtxt=hs) then
  375. begin
  376. set_target_asm_by_string:=set_target_asm(t);
  377. exit;
  378. end;
  379. end;
  380. function set_asmmode_by_string(const s:string;var t:tasmmode):boolean;
  381. var
  382. hs : string;
  383. ht : tasmmode;
  384. begin
  385. set_asmmode_by_string:=false;
  386. { this should be case insensitive !! PM }
  387. hs:=upper(s);
  388. for ht:=low(tasmmode) to high(tasmmode) do
  389. if assigned(asmmodeinfos[ht]) and
  390. (asmmodeinfos[ht]^.idtxt=hs) then
  391. begin
  392. t:=asmmodeinfos[ht]^.id;
  393. set_asmmode_by_string:=true;
  394. end;
  395. end;
  396. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  397. begin
  398. with d do
  399. begin
  400. { general update rules:
  401. minimum: if higher then update
  402. maximum: if lower then update or if undefined then update }
  403. if s.procalign>procalign then
  404. procalign:=s.procalign;
  405. if s.loopalign>loopalign then
  406. loopalign:=s.loopalign;
  407. if s.jumpalign>jumpalign then
  408. jumpalign:=s.jumpalign;
  409. if s.constalignmin>constalignmin then
  410. constalignmin:=s.constalignmin;
  411. if (constalignmax=0) or
  412. ((s.constalignmax>0) and (s.constalignmax<constalignmax)) then
  413. constalignmax:=s.constalignmax;
  414. if s.varalignmin>varalignmin then
  415. varalignmin:=s.varalignmin;
  416. if (varalignmax=0) or
  417. ((s.varalignmax>0) and (s.varalignmax<varalignmax)) then
  418. varalignmax:=s.varalignmax;
  419. if s.localalignmin>localalignmin then
  420. localalignmin:=s.localalignmin;
  421. if (localalignmax=0) or
  422. ((s.localalignmax>0) and (s.localalignmax<localalignmax)) then
  423. localalignmax:=s.localalignmax;
  424. if s.paraalign>paraalign then
  425. paraalign:=s.paraalign;
  426. if s.recordalignmin>recordalignmin then
  427. recordalignmin:=s.recordalignmin;
  428. if (recordalignmax=0) or
  429. ((s.recordalignmax>0) and (s.recordalignmax<recordalignmax)) then
  430. recordalignmax:=s.recordalignmax;
  431. if (maxCrecordalign=0) or
  432. ((s.maxCrecordalign>0) and (s.maxCrecordalign<maxCrecordalign)) then
  433. maxCrecordalign:=s.maxCrecordalign;
  434. end;
  435. end;
  436. {****************************************************************************
  437. Target registration
  438. ****************************************************************************}
  439. procedure RegisterTarget(const r:tsysteminfo);
  440. var
  441. t : tsystem;
  442. begin
  443. t:=r.system;
  444. if assigned(targetinfos[t]) then
  445. writeln('Warning: Target is already registered!')
  446. else
  447. Getmem(targetinfos[t],sizeof(tsysteminfo));
  448. targetinfos[t]^:=r;
  449. end;
  450. procedure RegisterAsmmode(const r:tasmmodeinfo);
  451. var
  452. t : tasmmode;
  453. begin
  454. t:=r.id;
  455. if assigned(asmmodeinfos[t]) then
  456. writeln('Warning: Asmmode is already registered!')
  457. else
  458. Getmem(asmmodeinfos[t],sizeof(tasmmodeinfo));
  459. asmmodeinfos[t]^:=r;
  460. end;
  461. procedure RegisterRes(const r:tresinfo);
  462. var
  463. t : tres;
  464. begin
  465. t:=r.id;
  466. if assigned(resinfos[t]) then
  467. writeln('Warning: resourcecompiler is already registered!')
  468. else
  469. Getmem(resinfos[t],sizeof(tresinfo));
  470. resinfos[t]^:=r;
  471. end;
  472. procedure RegisterAr(const r:tarinfo);
  473. var
  474. t : tar;
  475. begin
  476. t:=r.id;
  477. if assigned(arinfos[t]) then
  478. writeln('Warning: ar is already registered!')
  479. else
  480. Getmem(arinfos[t],sizeof(tarinfo));
  481. arinfos[t]^:=r;
  482. end;
  483. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  484. begin
  485. system_info.linkextern := c;
  486. end;
  487. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  488. begin
  489. system_info.link := c;
  490. end;
  491. procedure DeregisterInfos;
  492. var
  493. assem : tasm;
  494. target : tsystem;
  495. ar : tar;
  496. asmmode : tasmmode;
  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. for asmmode:=low(tasmmode) to high(tasmmode) do
  524. if assigned(asmmodeinfos[asmmode]) then
  525. begin
  526. freemem(asmmodeinfos[asmmode],sizeof(tasmmodeinfo));
  527. asmmodeinfos[asmmode]:=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 i386 or m68k define,
  549. when the define is the same as the current 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 cpuppc}
  581. default_target(source_info.system);
  582. {$else cpuppc}
  583. default_target(system_powerpc_linux);
  584. {$endif cpuppc}
  585. {$endif powerpc}
  586. {$IFDEF sparc}
  587. default_target(system_sparc_linux);
  588. {$ENDIF sparc}
  589. end;
  590. initialization
  591. source_info.name:='';
  592. finalization
  593. DeregisterInfos;
  594. end.
  595. {
  596. $Log$
  597. Revision 1.63 2003-05-25 23:15:04 marco
  598. * NetBSD target support. OpenBSD reserved in the enum, for future use.
  599. Revision 1.62 2003/05/20 23:54:00 florian
  600. + basic darwin support added
  601. Revision 1.61 2003/05/18 15:15:59 florian
  602. + added abi field to tsysteminfo
  603. Revision 1.60 2003/03/23 23:21:42 hajny
  604. + emx target added
  605. Revision 1.59 2003/01/12 15:42:23 peter
  606. * m68k pathexist update from 1.0.x
  607. * palmos res update from 1.0.x
  608. Revision 1.58 2003/01/05 13:36:53 florian
  609. * x86-64 compiles
  610. + very basic support for float128 type (x86-64 only)
  611. Revision 1.57 2002/10/05 12:43:29 carl
  612. * fixes for Delphi 6 compilation
  613. (warning : Some features do not work under Delphi)
  614. Revision 1.56 2002/10/03 21:18:29 carl
  615. * correct tsystem enumeration
  616. Revision 1.55 2002/09/07 18:05:51 florian
  617. * first part of PowerPC fixes
  618. Revision 1.54 2002/08/20 21:40:44 florian
  619. + target macos for ppc added
  620. + frame work for mpw assembler output
  621. Revision 1.53 2002/08/18 09:13:02 florian
  622. * small fixes to the alpha stuff
  623. Revision 1.52 2002/08/13 21:40:57 florian
  624. * more fixes for ppc calling conventions
  625. Revision 1.51 2002/08/12 15:08:40 carl
  626. + stab register indexes for powerpc (moved from gdb to cpubase)
  627. + tprocessor enumeration moved to cpuinfo
  628. + linker in target_info is now a class
  629. * many many updates for m68k (will soon start to compile)
  630. - removed some ifdef or correct them for correct cpu
  631. Revision 1.50 2002/08/10 14:46:31 carl
  632. + moved target_cpu_string to cpuinfo
  633. * renamed asmmode enum.
  634. * assembler reader has now less ifdef's
  635. * move from nppcmem.pas -> ncgmem.pas vec. node.
  636. Revision 1.49 2002/07/28 20:45:22 florian
  637. + added direct assembler reader for PowerPC
  638. Revision 1.48 2002/07/26 21:15:42 florian
  639. * rewrote the system handling
  640. Revision 1.47 2002/07/04 20:43:02 florian
  641. * first x86-64 patches
  642. Revision 1.46 2002/07/01 18:46:29 peter
  643. * internal linker
  644. * reorganized aasm layer
  645. Revision 1.45 2002/05/18 13:34:21 peter
  646. * readded missing revisions
  647. Revision 1.44 2002/05/16 19:46:45 carl
  648. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  649. + try to fix temp allocation (still in ifdef)
  650. + generic constructor calls
  651. + start of tassembler / tmodulebase class cleanup
  652. Revision 1.42 2002/05/06 19:52:04 carl
  653. + added more patches from Mazen for SPARC port
  654. Revision 1.41 2002/04/24 16:08:30 carl
  655. * fix compilation problem
  656. Revision 1.40 2002/04/20 21:32:26 carl
  657. + generic FPC_CHECKPOINTER
  658. + first parameter offset in stack now portable
  659. * rename some constants
  660. + move some cpu stuff to other units
  661. - remove unused constents
  662. * fix stacksize for some targets
  663. * fix generic size problems which depend now on EXTEND_SIZE constant
  664. Revision 1.39 2002/04/15 19:08:22 carl
  665. + target_info.size_of_pointer -> pointer_size
  666. + some cleanup of unused types/variables
  667. Revision 1.38 2002/04/14 16:56:30 carl
  668. - remove duplicate comment
  669. }