systems.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. {
  2. Copyright (c) 1998-2002 by Florian Klaempfl
  3. This unit contains information about the target systems supported
  4. (these are not processor specific)
  5. This program is free software; you can redistribute it and/or modify
  6. iu under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge- MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit systems;
  19. {$i fpcdefs.inc}
  20. interface
  21. type
  22. tendian = (endian_little,endian_big);
  23. (*
  24. IMPORTANT NOTE:
  25. The value of this enumeration is stored in PPU files.
  26. Therefore adding new CPU targets should not change the
  27. values of the pre-existing targets. (CEC)
  28. FURTHERMORE : Make sure that this branch values, are
  29. consistant with the main branch version always.
  30. *)
  31. tsystemcpu=
  32. (
  33. cpu_no, { 0 }
  34. cpu_i386, { 1 }
  35. cpu_m68k, { 2 }
  36. cpu_alpha, { 3 }
  37. cpu_powerpc, { 4 }
  38. cpu_sparc, { 5 }
  39. cpu_vm, { 6 }
  40. cpu_iA64, { 7 }
  41. cpu_x86_64, { 8 }
  42. cpu_mips, { 9 }
  43. cpu_arm { 10 }
  44. );
  45. tasmmode= (asmmode_none
  46. { standard assembler (cpu dependant) with full parsing }
  47. ,asmmode_standard
  48. ,asmmode_i386_att
  49. ,asmmode_i386_intel
  50. ,asmmode_ppc_gas
  51. ,asmmode_ppc_motorola
  52. ,asmmode_arm_gas
  53. ,asmmode_sparc_gas
  54. ,asmmode_x86_64_gas
  55. ,asmmode_m68k_mot
  56. );
  57. (* IMPORTANT NOTE:
  58. the integer value of this enum is stored in PPU
  59. files to recognize the target, so if you add new targets
  60. allways add them at end PM
  61. FURTHERMORE : Make sure that this branch values are
  62. consistant with the main branch version always. (CEC)
  63. *)
  64. type
  65. tsystem =
  66. (
  67. system_none, { 0 }
  68. obsolete_system_i386_GO32V1,{ 1 }
  69. system_i386_GO32V2, { 2 }
  70. system_i386_linux, { 3 }
  71. system_i386_OS2, { 4 }
  72. system_i386_Win32, { 5 }
  73. system_i386_freebsd, { 6 }
  74. system_m68k_Amiga, { 7 }
  75. system_m68k_Atari, { 8 }
  76. system_m68k_Mac, { 9 }
  77. system_m68k_linux, { 10 }
  78. system_m68k_PalmOS, { 11 }
  79. system_alpha_linux, { 12 }
  80. system_powerpc_linux, { 13 }
  81. system_powerpc_macos, { 14 }
  82. system_i386_solaris, { 15 }
  83. system_i386_beos, { 16 }
  84. system_i386_netbsd, { 17 }
  85. system_m68k_netbsd, { 18 }
  86. system_i386_Netware, { 19 }
  87. system_i386_qnx, { 20 }
  88. system_i386_wdosx, { 21 }
  89. system_sparc_solaris, { 22 }
  90. system_sparc_linux, { 23 }
  91. system_i386_openbsd, { 24 }
  92. system_m68k_openbsd, { 25 }
  93. system_x86_64_linux, { 26 }
  94. system_powerpc_darwin, { 27 }
  95. system_i386_EMX, { 28 }
  96. system_powerpc_netbsd, { 29 }
  97. system_powerpc_openbsd, { 30 }
  98. system_arm_linux, { 31 }
  99. system_i386_watcom, { 32 }
  100. system_powerpc_MorphOS, { 33 }
  101. system_x86_64_freebsd, { 34 }
  102. system_i386_netwlibc, { 35 }
  103. system_powerpc_Amiga, { 36 }
  104. system_x86_64_win64, { 37 }
  105. system_arm_wince, { 38 }
  106. system_ia64_win64, { 39 }
  107. system_i386_wince, { 40 }
  108. system_x86_6432_linux { 41 }
  109. );
  110. tasm = (as_none
  111. ,as_gas { standard gnu assembler }
  112. ,as_i386_as_aout
  113. ,as_i386_nasmcoff
  114. ,as_i386_nasmwin32
  115. ,as_i386_nasmwdosx
  116. ,as_i386_nasmelf
  117. ,as_i386_nasmobj
  118. ,as_i386_nasmbeos
  119. ,as_i386_tasm
  120. ,as_i386_masm
  121. ,as_i386_wasm
  122. ,as_i386_coff
  123. ,as_i386_pecoff
  124. ,as_i386_elf32
  125. ,as_i386_pecoffwdosx
  126. ,as_m68k_mit
  127. ,as_powerpc_mpw
  128. ,as_darwin
  129. ,as_x86_64_masm
  130. ,as_x86_64_pecoff
  131. ,as_i386_pecoffwince
  132. );
  133. tar = (ar_none
  134. ,ar_gnu_ar,ar_mpw_ar
  135. );
  136. tres = (res_none
  137. ,res_gnu_windres,res_emxbind
  138. ,res_m68k_palmos,res_m68k_mpw
  139. ,res_powerpc_mpw
  140. );
  141. tscripttype = (script_none
  142. ,script_dos,script_unix,script_amiga,
  143. script_mpw
  144. );
  145. tabi = (abi_default
  146. ,abi_powerpc_sysv,abi_powerpc_aix
  147. );
  148. {*****************************************************************************
  149. Structures
  150. *****************************************************************************}
  151. type
  152. { Abstract linker class which is implemented in link module }
  153. TAbstractLinker = class
  154. end;
  155. TAbstractLinkerClass = class of TAbstractLinker;
  156. { Abstract assembler class which is implemented in assemble module }
  157. TAbstractAssembler = class
  158. end;
  159. TAbstractAssemblerClass = class of TAbstractAssembler;
  160. palignmentinfo = ^talignmentinfo;
  161. talignmentinfo = record
  162. procalign,
  163. loopalign,
  164. jumpalign,
  165. constalignmin,
  166. constalignmax,
  167. varalignmin,
  168. varalignmax,
  169. localalignmin,
  170. localalignmax,
  171. recordalignmin,
  172. recordalignmax,
  173. maxCrecordalign : longint;
  174. end;
  175. tasmflags = (af_none,
  176. af_outputbinary,af_allowdirect,
  177. af_needar,af_smartlink_sections,
  178. af_labelprefix_only_inside_procedure,
  179. af_supports_dwarf
  180. );
  181. pasminfo = ^tasminfo;
  182. tasminfo = record
  183. id : tasm;
  184. idtxt : string[9];
  185. asmbin : string[8];
  186. asmcmd : string[50];
  187. supported_target : tsystem;
  188. flags : set of tasmflags;
  189. labelprefix : string[3];
  190. comment : string[3];
  191. end;
  192. parinfo = ^tarinfo;
  193. tarinfo = record
  194. id : tar;
  195. arcmd : string[50];
  196. end;
  197. presinfo = ^tresinfo;
  198. tresinfo = record
  199. id : tres;
  200. resbin : string[8];
  201. rescmd : string[50];
  202. end;
  203. tsystemflags = (tf_none,
  204. tf_under_development,
  205. tf_need_export,tf_needs_isconsole,
  206. tf_code_small,tf_static_reg_based,
  207. tf_needs_symbol_size,
  208. tf_smartlink_sections,
  209. tf_needs_dwarf_cfi,
  210. tf_use_8_3,
  211. tf_pic_uses_got,
  212. tf_library_needs_pic
  213. );
  214. psysteminfo = ^tsysteminfo;
  215. { using packed causes bus errors on processors which require alignment }
  216. tsysteminfo = record
  217. system : tsystem;
  218. name : string[34];
  219. shortname : string[9];
  220. flags : set of tsystemflags;
  221. cpu : tsystemcpu;
  222. unit_env : string[16];
  223. extradefines : string[40];
  224. exeext,
  225. defext,
  226. scriptext,
  227. smartext,
  228. unitext,
  229. unitlibext,
  230. asmext,
  231. objext,
  232. resext,
  233. resobjext : string[4];
  234. sharedlibext : string[10];
  235. staticlibext,
  236. staticlibprefix : string[4];
  237. sharedlibprefix : string[4];
  238. sharedClibext : string[10];
  239. staticClibext,
  240. staticClibprefix : string[4];
  241. sharedClibprefix : string[4];
  242. p_ext_support:Boolean; {Whether extension .p is supported by default}
  243. Cprefix : string[2];
  244. newline : string[2];
  245. dirsep : char;
  246. files_case_relevent : boolean;
  247. assem : tasm;
  248. assemextern : tasm; { external assembler, used by -a }
  249. link : tabstractlinkerclass;
  250. linkextern : tabstractlinkerclass; { external linker, used by -s }
  251. ar : tar;
  252. res : tres;
  253. script : tscripttype;
  254. endian : tendian;
  255. alignment : talignmentinfo;
  256. {
  257. Offset from the argument pointer register to the first
  258. argument's address. On some machines it may depend on
  259. the data type of the function.
  260. (see also FIRST_PARM_OFFSET in GCC source)
  261. }
  262. first_parm_offset : longint;
  263. stacksize : longint;
  264. DllScanSupported : boolean;
  265. use_function_relative_addresses : boolean;
  266. abi : tabi;
  267. end;
  268. const
  269. { alias for supported_target field in tasminfo }
  270. system_any = system_none;
  271. cpu2str : array[TSystemCpu] of string =
  272. ('','i386','m68k','alpha','powerpc','sparc','vm','ia64','x86_64',
  273. 'mips','arm');
  274. var
  275. targetinfos : array[tsystem] of psysteminfo;
  276. arinfos : array[tar] of parinfo;
  277. resinfos : array[tres] of presinfo;
  278. asminfos : array[tasm] of pasminfo;
  279. source_info : tsysteminfo;
  280. target_cpu : tsystemcpu;
  281. target_info : tsysteminfo;
  282. target_asm : tasminfo;
  283. target_ar : tarinfo;
  284. target_res : tresinfo;
  285. target_cpu_string,
  286. target_os_string : string[12]; { for rtl/<X>/,fcl/<X>/, etc. }
  287. target_full_string : string[24];
  288. function set_target(t:tsystem):boolean;
  289. function set_target_asm(t:tasm):boolean;
  290. function set_target_ar(t:tar):boolean;
  291. function set_target_res(t:tres):boolean;
  292. function set_target_by_string(const s : string) : boolean;
  293. function set_target_asm_by_string(const s : string) : boolean;
  294. procedure set_source_info(const ti : tsysteminfo);
  295. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  296. procedure RegisterTarget(const r:tsysteminfo);
  297. procedure RegisterRes(const r:tresinfo);
  298. procedure RegisterAr(const r:tarinfo);
  299. { Register the external linker. This routine is called to setup the
  300. class to use for the linker. It returns the tsysteminfo structure
  301. updated with the correct linker class for external linking.
  302. }
  303. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  304. { Register the internal linker. This routine is called to setup the
  305. class to use for the linker. It returns the tsysteminfo structure
  306. updated with the correct linker class for internal linking.
  307. If internal linking is not supported, this class can be set
  308. to nil.
  309. }
  310. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  311. procedure InitSystems;
  312. {$ifdef FreeBSD}
  313. function GetOSRelDate:Longint;
  314. {$endif}
  315. implementation
  316. uses
  317. cutils{$ifdef FreeBSD},SysCtl,BaseUnix{$endif};
  318. {****************************************************************************
  319. OS runtime version detection utility routine
  320. ****************************************************************************}
  321. {$ifdef FreeBSD}
  322. function GetOSRelDate:Longint;
  323. var
  324. mib : array[0..1] of cint;
  325. rval : cint;
  326. len : size_t;
  327. i : longint;
  328. v : longint;
  329. oerrno : cint;
  330. S : AnsiString;
  331. Begin
  332. s:='ab';
  333. SetLength(S,50);
  334. mib[0] := CTL_KERN;
  335. mib[1] := KERN_OSRELDATE;
  336. len := 4;
  337. oerrno:= fpgeterrno;
  338. if (FPsysctl(@mib, 2, pchar(@v), @len, NIL, 0) = -1) Then
  339. Begin
  340. if (fpgeterrno = ESysENOMEM) Then
  341. fpseterrno(oerrno);
  342. GetOSRelDate:=0;
  343. End
  344. else
  345. GetOSRelDate:=v;
  346. End;
  347. {$endif}
  348. {****************************************************************************
  349. Target setting
  350. ****************************************************************************}
  351. function set_target(t:tsystem):boolean;
  352. begin
  353. set_target:=false;
  354. if assigned(targetinfos[t]) then
  355. begin
  356. target_info:=targetinfos[t]^;
  357. set_target_asm(target_info.assem);
  358. set_target_ar(target_info.ar);
  359. set_target_res(target_info.res);
  360. target_cpu:=target_info.cpu;
  361. target_os_string:=lower(target_info.shortname);
  362. target_cpu_string:=cpu2str[target_cpu];
  363. target_full_string:=target_cpu_string+'-'+target_os_string;
  364. set_target:=true;
  365. exit;
  366. end;
  367. end;
  368. function set_target_asm(t:tasm):boolean;
  369. begin
  370. set_target_asm:=false;
  371. if assigned(asminfos[t]) and
  372. ((asminfos[t]^.supported_target=target_info.system) or
  373. (asminfos[t]^.supported_target=system_any)) then
  374. begin
  375. target_asm:=asminfos[t]^;
  376. set_target_asm:=true;
  377. exit;
  378. end;
  379. end;
  380. function set_target_ar(t:tar):boolean;
  381. begin
  382. set_target_ar:=false;
  383. if assigned(arinfos[t]) then
  384. begin
  385. target_ar:=arinfos[t]^;
  386. set_target_ar:=true;
  387. exit;
  388. end;
  389. end;
  390. function set_target_res(t:tres):boolean;
  391. begin
  392. set_target_res:=false;
  393. if assigned(resinfos[t]) then
  394. begin
  395. target_res:=resinfos[t]^;
  396. set_target_res:=true;
  397. exit;
  398. end;
  399. end;
  400. function set_target_by_string(const s : string) : boolean;
  401. var
  402. hs : string;
  403. t : tsystem;
  404. begin
  405. set_target_by_string:=false;
  406. { this should be case insensitive !! PM }
  407. hs:=upper(s);
  408. for t:=low(tsystem) to high(tsystem) do
  409. if assigned(targetinfos[t]) and
  410. (upper(targetinfos[t]^.shortname)=hs) then
  411. begin
  412. set_target_by_string:=set_target(t);
  413. exit;
  414. end;
  415. end;
  416. function set_target_asm_by_string(const s : string) : boolean;
  417. var
  418. hs : string;
  419. t : tasm;
  420. begin
  421. set_target_asm_by_string:=false;
  422. { this should be case insensitive !! PM }
  423. hs:=upper(s);
  424. for t:=low(tasm) to high(tasm) do
  425. if assigned(asminfos[t]) and
  426. (asminfos[t]^.idtxt=hs) then
  427. begin
  428. set_target_asm_by_string:=set_target_asm(t);
  429. exit;
  430. end;
  431. end;
  432. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  433. begin
  434. with d do
  435. begin
  436. { general update rules:
  437. minimum: if higher then update
  438. maximum: if lower then update or if undefined then update }
  439. if s.procalign>procalign then
  440. procalign:=s.procalign;
  441. if s.loopalign>loopalign then
  442. loopalign:=s.loopalign;
  443. if s.jumpalign>jumpalign then
  444. jumpalign:=s.jumpalign;
  445. if s.constalignmin>constalignmin then
  446. constalignmin:=s.constalignmin;
  447. if (constalignmax=0) or
  448. ((s.constalignmax>0) and (s.constalignmax<constalignmax)) then
  449. constalignmax:=s.constalignmax;
  450. if s.varalignmin>varalignmin then
  451. varalignmin:=s.varalignmin;
  452. if (varalignmax=0) or
  453. ((s.varalignmax>0) and (s.varalignmax<varalignmax)) then
  454. varalignmax:=s.varalignmax;
  455. if s.localalignmin>localalignmin then
  456. localalignmin:=s.localalignmin;
  457. if (localalignmax=0) or
  458. ((s.localalignmax>0) and (s.localalignmax<localalignmax)) then
  459. localalignmax:=s.localalignmax;
  460. if s.recordalignmin>recordalignmin then
  461. recordalignmin:=s.recordalignmin;
  462. if (recordalignmax=0) or
  463. ((s.recordalignmax>0) and (s.recordalignmax<recordalignmax)) then
  464. recordalignmax:=s.recordalignmax;
  465. if (maxCrecordalign=0) or
  466. ((s.maxCrecordalign>0) and (s.maxCrecordalign<maxCrecordalign)) then
  467. maxCrecordalign:=s.maxCrecordalign;
  468. end;
  469. end;
  470. {****************************************************************************
  471. Target registration
  472. ****************************************************************************}
  473. procedure RegisterTarget(const r:tsysteminfo);
  474. var
  475. t : tsystem;
  476. begin
  477. t:=r.system;
  478. if assigned(targetinfos[t]) then
  479. writeln('Warning: Target is already registered!')
  480. else
  481. Getmem(targetinfos[t],sizeof(tsysteminfo));
  482. targetinfos[t]^:=r;
  483. end;
  484. procedure RegisterRes(const r:tresinfo);
  485. var
  486. t : tres;
  487. begin
  488. t:=r.id;
  489. if assigned(resinfos[t]) then
  490. writeln('Warning: resourcecompiler is already registered!')
  491. else
  492. Getmem(resinfos[t],sizeof(tresinfo));
  493. resinfos[t]^:=r;
  494. end;
  495. procedure RegisterAr(const r:tarinfo);
  496. var
  497. t : tar;
  498. begin
  499. t:=r.id;
  500. if assigned(arinfos[t]) then
  501. writeln('Warning: ar is already registered!')
  502. else
  503. Getmem(arinfos[t],sizeof(tarinfo));
  504. arinfos[t]^:=r;
  505. end;
  506. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  507. begin
  508. system_info.linkextern := c;
  509. end;
  510. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  511. begin
  512. system_info.link := c;
  513. end;
  514. procedure DeregisterInfos;
  515. var
  516. assem : tasm;
  517. target : tsystem;
  518. ar : tar;
  519. res : tres;
  520. begin
  521. for target:=low(tsystem) to high(tsystem) do
  522. if assigned(targetinfos[target]) then
  523. begin
  524. freemem(targetinfos[target],sizeof(tsysteminfo));
  525. targetinfos[target]:=nil;
  526. end;
  527. for assem:=low(tasm) to high(tasm) do
  528. if assigned(asminfos[assem]) then
  529. begin
  530. freemem(asminfos[assem],sizeof(tasminfo));
  531. asminfos[assem]:=nil;
  532. end;
  533. for ar:=low(tar) to high(tar) do
  534. if assigned(arinfos[ar]) then
  535. begin
  536. freemem(arinfos[ar],sizeof(tarinfo));
  537. arinfos[ar]:=nil;
  538. end;
  539. for res:=low(tres) to high(tres) do
  540. if assigned(resinfos[res]) then
  541. begin
  542. freemem(resinfos[res],sizeof(tresinfo));
  543. resinfos[res]:=nil;
  544. end;
  545. end;
  546. {****************************************************************************
  547. Initialization of default target
  548. ****************************************************************************}
  549. procedure default_target(t:tsystem);
  550. begin
  551. set_target(t);
  552. if source_info.name='' then
  553. source_info:=target_info;
  554. end;
  555. procedure set_source_info(const ti : tsysteminfo);
  556. begin
  557. { can't use message() here (PFV) }
  558. if source_info.name<>'' then
  559. Writeln('Warning: Source OS Redefined!');
  560. source_info:=ti;
  561. end;
  562. procedure InitSystems;
  563. begin
  564. { Now default target, this is dependent on the target cpu define,
  565. when the define is the same as the source cpu then we use the source
  566. os, else we pick a default }
  567. {$ifdef i386}
  568. {$ifdef cpu86}
  569. default_target(source_info.system);
  570. {$else cpu86}
  571. {$ifdef linux}
  572. default_target(system_i386_linux);
  573. {$endif}
  574. {$ifdef freebsd}
  575. default_target(system_i386_freebsd);
  576. {$endif}
  577. {$endif cpu86}
  578. {$endif i386}
  579. {$ifdef x86_64}
  580. {$ifdef cpux86_64}
  581. default_target(source_info.system);
  582. {$define source_system_set}
  583. {$else cpux86_64}
  584. {$ifdef linux}
  585. default_target(system_x86_64_linux);
  586. {$define source_system_set}
  587. {$endif}
  588. {$ifdef freebsd}
  589. default_target(system_x86_64_freebsd);
  590. {$define source_system_set}
  591. {$endif}
  592. { default is linux }
  593. {$ifndef source_system_set}
  594. default_target(system_x86_64_linux);
  595. {$endif source_system_set}
  596. {$endif cpux86_64}
  597. {$endif x86_64}
  598. {$ifdef m68k}
  599. {$ifdef cpu68}
  600. default_target(source_info.target);
  601. {$else cpu68}
  602. default_target(system_m68k_linux);
  603. {$endif cpu68}
  604. {$endif m68k}
  605. {$ifdef alpha}
  606. {$ifdef cpualpha}
  607. default_target(source_info.system);
  608. {$else cpualpha}
  609. default_target(system_alpha_linux);
  610. {$endif cpualpha}
  611. {$endif alpha}
  612. {$ifdef powerpc}
  613. {$ifdef cpupowerpc}
  614. default_target(source_info.system);
  615. {$else cpupowerpc}
  616. default_target(system_powerpc_linux);
  617. {$endif cpupowerpc}
  618. {$endif powerpc}
  619. {$ifdef sparc}
  620. {$ifdef cpusparc}
  621. default_target(source_info.system);
  622. {$else cpusparc}
  623. default_target(system_sparc_linux);
  624. {$endif cpusparc}
  625. {$endif sparc}
  626. {$ifdef arm}
  627. {$ifdef cpuarm}
  628. default_target(source_info.system);
  629. {$else cpuarm}
  630. default_target(system_arm_linux);
  631. {$endif cpuarm}
  632. {$endif arm}
  633. end;
  634. initialization
  635. source_info.name:='';
  636. finalization
  637. DeregisterInfos;
  638. end.