systems.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755
  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_macosx { 27 }
  99. );
  100. tasm = (as_none
  101. ,as_gas { standard gnu assembler }
  102. ,as_i386_as_aout
  103. ,as_i386_asw
  104. ,as_i386_nasmcoff
  105. ,as_i386_nasmwin32
  106. ,as_i386_nasmwdosx
  107. ,as_i386_nasmelf
  108. ,as_i386_nasmobj
  109. ,as_i386_tasm
  110. ,as_i386_masm
  111. ,as_i386_coff
  112. ,as_i386_pecoff
  113. ,as_i386_elf32
  114. ,as_i386_pecoffwdosx
  115. ,as_m68k_mit
  116. ,as_powerpc_mpw
  117. );
  118. tar = (ar_none
  119. ,ar_gnu_ar,ar_gnu_arw,ar_mpw_ar
  120. );
  121. tres = (res_none
  122. ,res_gnu_windres,res_emxbind,res_mpw_res
  123. );
  124. tscripttype = (script_none
  125. ,script_dos,script_unix,script_amiga
  126. );
  127. {*****************************************************************************
  128. Structures
  129. *****************************************************************************}
  130. type
  131. { Abstract linker class which is implemented in link module }
  132. TAbstractLinker = class
  133. end;
  134. TAbstractLinkerClass = class of TABstractLinker;
  135. { Abstract assembler class which is implemented in assemble module }
  136. TAbstractAssembler = class
  137. end;
  138. TAbstractAssemblerClass = class of TAbstractAssembler;
  139. palignmentinfo = ^talignmentinfo;
  140. talignmentinfo = packed record
  141. procalign,
  142. loopalign,
  143. jumpalign,
  144. constalignmin,
  145. constalignmax,
  146. varalignmin,
  147. varalignmax,
  148. localalignmin,
  149. localalignmax,
  150. paraalign,
  151. recordalignmin,
  152. recordalignmax,
  153. maxCrecordalign : longint;
  154. end;
  155. pasminfo = ^tasminfo;
  156. tasminfo = packed record
  157. id : tasm;
  158. idtxt : string[9];
  159. asmbin : string[8];
  160. asmcmd : string[50];
  161. supported_target : tsystem;
  162. outputbinary,
  163. allowdirect,
  164. needar,
  165. labelprefix_only_inside_procedure : boolean;
  166. labelprefix : string[3];
  167. comment : string[2];
  168. secnames : array[TSection] of string[20];
  169. end;
  170. parinfo = ^tarinfo;
  171. tarinfo = packed record
  172. id : tar;
  173. arcmd : string[50];
  174. end;
  175. presinfo = ^tresinfo;
  176. tresinfo = packed record
  177. id : tres;
  178. resbin : string[8];
  179. rescmd : string[50];
  180. end;
  181. tsystemflags = (tf_none,
  182. tf_under_development,
  183. tf_need_export,tf_needs_isconsole
  184. ,tf_code_small,tf_static_reg_based
  185. );
  186. psysteminfo = ^tsysteminfo;
  187. tsysteminfo = packed record
  188. system : tsystem;
  189. name : string[30];
  190. shortname : string[9];
  191. flags : set of tsystemflags;
  192. cpu : tsystemcpu;
  193. unit_env : string[12];
  194. extradefines : string[40];
  195. sourceext,
  196. pasext,
  197. exeext,
  198. defext,
  199. scriptext,
  200. smartext,
  201. unitext,
  202. unitlibext,
  203. asmext,
  204. objext,
  205. resext,
  206. resobjext : string[4];
  207. sharedlibext : string[10];
  208. staticlibext,
  209. staticlibprefix : string[4];
  210. sharedlibprefix : string[4];
  211. sharedClibext : string[10];
  212. staticClibext,
  213. staticClibprefix : string[4];
  214. sharedClibprefix : string[4];
  215. Cprefix : string[2];
  216. newline : string[2];
  217. dirsep : char;
  218. files_case_relevent : boolean;
  219. assem : tasm;
  220. assemextern : tasm; { external assembler, used by -a }
  221. link : tabstractlinkerclass;
  222. linkextern : tabstractlinkerclass; { external linker, used by -s }
  223. ar : tar;
  224. res : tres;
  225. script : tscripttype;
  226. endian : tendian;
  227. alignment : talignmentinfo;
  228. {
  229. Offset from the argument pointer register to the first
  230. argument's address. On some machines it may depend on
  231. the data type of the function.
  232. (see also FIRST_PARM_OFFSET in GCC source)
  233. }
  234. first_parm_offset : longint;
  235. heapsize,
  236. stacksize : longint;
  237. DllScanSupported : boolean;
  238. use_function_relative_addresses : boolean;
  239. end;
  240. pasmmodeinfo = ^tasmmodeinfo;
  241. tasmmodeinfo = packed record
  242. id : tasmmode;
  243. idtxt : string[8];
  244. end;
  245. const
  246. { alias for supported_target field in tasminfo }
  247. system_any = system_none;
  248. var
  249. targetinfos : array[tsystem] of psysteminfo;
  250. asminfos : array[tasm] of pasminfo;
  251. arinfos : array[tar] of parinfo;
  252. resinfos : array[tres] of presinfo;
  253. asmmodeinfos : array[tasmmode] of pasmmodeinfo;
  254. source_info : tsysteminfo;
  255. target_cpu : tsystemcpu;
  256. target_info : tsysteminfo;
  257. target_asm : tasminfo;
  258. target_ar : tarinfo;
  259. target_res : tresinfo;
  260. target_path : string[12]; { for rtl/<X>/,fcl/<X>/, etc. }
  261. function set_target(t:tsystem):boolean;
  262. function set_target_asm(t:tasm):boolean;
  263. function set_target_ar(t:tar):boolean;
  264. function set_target_res(t:tres):boolean;
  265. function set_target_by_string(const s : string) : boolean;
  266. function set_target_asm_by_string(const s : string) : boolean;
  267. function set_asmmode_by_string(const s:string;var t:tasmmode):boolean;
  268. procedure set_source_info(const ti : tsysteminfo);
  269. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  270. procedure RegisterTarget(const r:tsysteminfo);
  271. procedure RegisterAsmMode(const r:tasmmodeinfo);
  272. procedure RegisterRes(const r:tresinfo);
  273. procedure RegisterAr(const r:tarinfo);
  274. { Register the external linker. This routine is called to setup the
  275. class to use for the linker. It returns the tsysteminfo structure
  276. updated with the correct linker class for external linking.
  277. }
  278. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  279. { Register the internal linker. This routine is called to setup the
  280. class to use for the linker. It returns the tsysteminfo structure
  281. updated with the correct linker class for internal linking.
  282. If internal linking is not supported, this class can be set
  283. to nil.
  284. }
  285. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  286. procedure InitSystems;
  287. implementation
  288. uses
  289. cutils;
  290. {****************************************************************************
  291. Target setting
  292. ****************************************************************************}
  293. function set_target(t:tsystem):boolean;
  294. begin
  295. set_target:=false;
  296. if assigned(targetinfos[t]) then
  297. begin
  298. target_info:=targetinfos[t]^;
  299. set_target_asm(target_info.assem);
  300. set_target_ar(target_info.ar);
  301. set_target_res(target_info.res);
  302. target_path:=lower(target_info.shortname);
  303. target_cpu:=target_info.cpu;
  304. set_target:=true;
  305. exit;
  306. end;
  307. end;
  308. function set_target_asm(t:tasm):boolean;
  309. begin
  310. set_target_asm:=false;
  311. if assigned(asminfos[t]) then
  312. begin
  313. target_asm:=asminfos[t]^;
  314. set_target_asm:=true;
  315. exit;
  316. end;
  317. end;
  318. function set_target_ar(t:tar):boolean;
  319. begin
  320. set_target_ar:=false;
  321. if assigned(arinfos[t]) then
  322. begin
  323. target_ar:=arinfos[t]^;
  324. set_target_ar:=true;
  325. exit;
  326. end;
  327. end;
  328. function set_target_res(t:tres):boolean;
  329. begin
  330. set_target_res:=false;
  331. if assigned(resinfos[t]) then
  332. begin
  333. target_res:=resinfos[t]^;
  334. set_target_res:=true;
  335. exit;
  336. end;
  337. end;
  338. function set_target_by_string(const s : string) : boolean;
  339. var
  340. hs : string;
  341. t : tsystem;
  342. begin
  343. set_target_by_string:=false;
  344. { this should be case insensitive !! PM }
  345. hs:=upper(s);
  346. for t:=low(tsystem) to high(tsystem) do
  347. if assigned(targetinfos[t]) and
  348. (upper(targetinfos[t]^.shortname)=hs) then
  349. begin
  350. set_target_by_string:=set_target(t);
  351. exit;
  352. end;
  353. end;
  354. function set_target_asm_by_string(const s : string) : boolean;
  355. var
  356. hs : string;
  357. t : tasm;
  358. begin
  359. set_target_asm_by_string:=false;
  360. { this should be case insensitive !! PM }
  361. hs:=upper(s);
  362. for t:=low(tasm) to high(tasm) do
  363. if assigned(asminfos[t]) and
  364. (asminfos[t]^.idtxt=hs) then
  365. begin
  366. set_target_asm_by_string:=set_target_asm(t);
  367. exit;
  368. end;
  369. end;
  370. function set_asmmode_by_string(const s:string;var t:tasmmode):boolean;
  371. var
  372. hs : string;
  373. ht : tasmmode;
  374. begin
  375. set_asmmode_by_string:=false;
  376. { this should be case insensitive !! PM }
  377. hs:=upper(s);
  378. for ht:=low(tasmmode) to high(tasmmode) do
  379. if assigned(asmmodeinfos[ht]) and
  380. (asmmodeinfos[ht]^.idtxt=hs) then
  381. begin
  382. t:=asmmodeinfos[ht]^.id;
  383. set_asmmode_by_string:=true;
  384. end;
  385. end;
  386. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  387. begin
  388. with d do
  389. begin
  390. { general update rules:
  391. minimum: if higher then update
  392. maximum: if lower then update or if undefined then update }
  393. if s.procalign>procalign then
  394. procalign:=s.procalign;
  395. if s.loopalign>loopalign then
  396. loopalign:=s.loopalign;
  397. if s.jumpalign>jumpalign then
  398. jumpalign:=s.jumpalign;
  399. if s.constalignmin>constalignmin then
  400. constalignmin:=s.constalignmin;
  401. if (constalignmax=0) or
  402. ((s.constalignmax>0) and (s.constalignmax<constalignmax)) then
  403. constalignmax:=s.constalignmax;
  404. if s.varalignmin>varalignmin then
  405. varalignmin:=s.varalignmin;
  406. if (varalignmax=0) or
  407. ((s.varalignmax>0) and (s.varalignmax<varalignmax)) then
  408. varalignmax:=s.varalignmax;
  409. if s.localalignmin>localalignmin then
  410. localalignmin:=s.localalignmin;
  411. if (localalignmax=0) or
  412. ((s.localalignmax>0) and (s.localalignmax<localalignmax)) then
  413. localalignmax:=s.localalignmax;
  414. if s.paraalign>paraalign then
  415. paraalign:=s.paraalign;
  416. if s.recordalignmin>recordalignmin then
  417. recordalignmin:=s.recordalignmin;
  418. if (recordalignmax=0) or
  419. ((s.recordalignmax>0) and (s.recordalignmax<recordalignmax)) then
  420. recordalignmax:=s.recordalignmax;
  421. if (maxCrecordalign=0) or
  422. ((s.maxCrecordalign>0) and (s.maxCrecordalign<maxCrecordalign)) then
  423. maxCrecordalign:=s.maxCrecordalign;
  424. end;
  425. end;
  426. {****************************************************************************
  427. Target registration
  428. ****************************************************************************}
  429. procedure RegisterTarget(const r:tsysteminfo);
  430. var
  431. t : tsystem;
  432. begin
  433. t:=r.system;
  434. if assigned(targetinfos[t]) then
  435. writeln('Warning: Target is already registered!')
  436. else
  437. Getmem(targetinfos[t],sizeof(tsysteminfo));
  438. targetinfos[t]^:=r;
  439. end;
  440. procedure RegisterAsmmode(const r:tasmmodeinfo);
  441. var
  442. t : tasmmode;
  443. begin
  444. t:=r.id;
  445. if assigned(asmmodeinfos[t]) then
  446. writeln('Warning: Asmmode is already registered!')
  447. else
  448. Getmem(asmmodeinfos[t],sizeof(tasmmodeinfo));
  449. asmmodeinfos[t]^:=r;
  450. end;
  451. procedure RegisterRes(const r:tresinfo);
  452. var
  453. t : tres;
  454. begin
  455. t:=r.id;
  456. if assigned(resinfos[t]) then
  457. writeln('Warning: resourcecompiler is already registered!')
  458. else
  459. Getmem(resinfos[t],sizeof(tresinfo));
  460. resinfos[t]^:=r;
  461. end;
  462. procedure RegisterAr(const r:tarinfo);
  463. var
  464. t : tar;
  465. begin
  466. t:=r.id;
  467. if assigned(arinfos[t]) then
  468. writeln('Warning: ar is already registered!')
  469. else
  470. Getmem(arinfos[t],sizeof(tarinfo));
  471. arinfos[t]^:=r;
  472. end;
  473. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  474. begin
  475. system_info.linkextern := c;
  476. end;
  477. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  478. begin
  479. system_info.link := c;
  480. end;
  481. procedure DeregisterInfos;
  482. var
  483. assem : tasm;
  484. target : tsystem;
  485. ar : tar;
  486. asmmode : tasmmode;
  487. res : tres;
  488. begin
  489. for target:=low(tsystem) to high(tsystem) do
  490. if assigned(targetinfos[target]) then
  491. begin
  492. freemem(targetinfos[target],sizeof(tsysteminfo));
  493. targetinfos[target]:=nil;
  494. end;
  495. for assem:=low(tasm) to high(tasm) do
  496. if assigned(asminfos[assem]) then
  497. begin
  498. freemem(asminfos[assem],sizeof(tasminfo));
  499. asminfos[assem]:=nil;
  500. end;
  501. for ar:=low(tar) to high(tar) do
  502. if assigned(arinfos[ar]) then
  503. begin
  504. freemem(arinfos[ar],sizeof(tarinfo));
  505. arinfos[ar]:=nil;
  506. end;
  507. for res:=low(tres) to high(tres) do
  508. if assigned(resinfos[res]) then
  509. begin
  510. freemem(resinfos[res],sizeof(tresinfo));
  511. resinfos[res]:=nil;
  512. end;
  513. for asmmode:=low(tasmmode) to high(tasmmode) do
  514. if assigned(asmmodeinfos[asmmode]) then
  515. begin
  516. freemem(asmmodeinfos[asmmode],sizeof(tasmmodeinfo));
  517. asmmodeinfos[asmmode]:=nil;
  518. end;
  519. end;
  520. {****************************************************************************
  521. Initialization of default target
  522. ****************************************************************************}
  523. procedure default_target(t:tsystem);
  524. begin
  525. set_target(t);
  526. if source_info.name='' then
  527. source_info:=target_info;
  528. end;
  529. procedure set_source_info(const ti : tsysteminfo);
  530. begin
  531. { can't use message() here (PFV) }
  532. if source_info.name<>'' then
  533. Writeln('Warning: Source OS Redefined!');
  534. source_info:=ti;
  535. end;
  536. procedure InitSystems;
  537. begin
  538. { Now default target, this is dependent on the i386 or m68k define,
  539. when the define is the same as the current cpu then we use the source
  540. os, else we pick a default }
  541. {$ifdef i386}
  542. {$ifdef cpu86}
  543. default_target(source_info.system);
  544. {$else cpu86}
  545. default_target(system_i386_linux);
  546. {$endif cpu86}
  547. {$endif i386}
  548. {$ifdef x86_64}
  549. {$ifdef cpu86_64}
  550. default_target(source_info.system);
  551. {$else cpu86_64}
  552. default_target(system_x86_64_linux);
  553. {$endif cpu86_64}
  554. {$endif x86_64}
  555. {$ifdef m68k}
  556. {$ifdef cpu68}
  557. default_target(source_info.target);
  558. {$else cpu68}
  559. default_target(system_m68k_linux);
  560. {$endif cpu68}
  561. {$endif m68k}
  562. {$ifdef alpha}
  563. {$ifdef cpualpha}
  564. default_target(source_info.system);
  565. {$else cpualpha}
  566. default_target(system_alpha_linux);
  567. {$endif cpualpha}
  568. {$endif alpha}
  569. {$ifdef powerpc}
  570. {$ifdef cpuppc}
  571. default_target(source_info.system);
  572. {$else cpuppc}
  573. default_target(system_powerpc_linux);
  574. {$endif cpuppc}
  575. {$endif powerpc}
  576. {$IFDEF sparc}
  577. default_target(system_sparc_linux);
  578. {$ENDIF sparc}
  579. end;
  580. initialization
  581. source_info.name:='';
  582. finalization
  583. DeregisterInfos;
  584. end.
  585. {
  586. $Log$
  587. Revision 1.57 2002-10-05 12:43:29 carl
  588. * fixes for Delphi 6 compilation
  589. (warning : Some features do not work under Delphi)
  590. Revision 1.56 2002/10/03 21:18:29 carl
  591. * correct tsystem enumeration
  592. Revision 1.55 2002/09/07 18:05:51 florian
  593. * first part of PowerPC fixes
  594. Revision 1.54 2002/08/20 21:40:44 florian
  595. + target macos for ppc added
  596. + frame work for mpw assembler output
  597. Revision 1.53 2002/08/18 09:13:02 florian
  598. * small fixes to the alpha stuff
  599. Revision 1.52 2002/08/13 21:40:57 florian
  600. * more fixes for ppc calling conventions
  601. Revision 1.51 2002/08/12 15:08:40 carl
  602. + stab register indexes for powerpc (moved from gdb to cpubase)
  603. + tprocessor enumeration moved to cpuinfo
  604. + linker in target_info is now a class
  605. * many many updates for m68k (will soon start to compile)
  606. - removed some ifdef or correct them for correct cpu
  607. Revision 1.50 2002/08/10 14:46:31 carl
  608. + moved target_cpu_string to cpuinfo
  609. * renamed asmmode enum.
  610. * assembler reader has now less ifdef's
  611. * move from nppcmem.pas -> ncgmem.pas vec. node.
  612. Revision 1.49 2002/07/28 20:45:22 florian
  613. + added direct assembler reader for PowerPC
  614. Revision 1.48 2002/07/26 21:15:42 florian
  615. * rewrote the system handling
  616. Revision 1.47 2002/07/04 20:43:02 florian
  617. * first x86-64 patches
  618. Revision 1.46 2002/07/01 18:46:29 peter
  619. * internal linker
  620. * reorganized aasm layer
  621. Revision 1.45 2002/05/18 13:34:21 peter
  622. * readded missing revisions
  623. Revision 1.44 2002/05/16 19:46:45 carl
  624. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  625. + try to fix temp allocation (still in ifdef)
  626. + generic constructor calls
  627. + start of tassembler / tmodulebase class cleanup
  628. Revision 1.42 2002/05/06 19:52:04 carl
  629. + added more patches from Mazen for SPARC port
  630. Revision 1.41 2002/04/24 16:08:30 carl
  631. * fix compilation problem
  632. Revision 1.40 2002/04/20 21:32:26 carl
  633. + generic FPC_CHECKPOINTER
  634. + first parameter offset in stack now portable
  635. * rename some constants
  636. + move some cpu stuff to other units
  637. - remove unused constents
  638. * fix stacksize for some targets
  639. * fix generic size problems which depend now on EXTEND_SIZE constant
  640. Revision 1.39 2002/04/15 19:08:22 carl
  641. + target_info.size_of_pointer -> pointer_size
  642. + some cleanup of unused types/variables
  643. Revision 1.38 2002/04/14 16:56:30 carl
  644. - remove duplicate comment
  645. }