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. );
  130. tar = (ar_none
  131. ,ar_gnu_ar,ar_mpw_ar
  132. );
  133. tres = (res_none
  134. ,res_gnu_windres,res_emxbind
  135. ,res_m68k_palmos,res_m68k_mpw
  136. ,res_powerpc_mpw,res_elf
  137. );
  138. tscripttype = (script_none
  139. ,script_dos,script_unix,script_amiga,
  140. script_mpw
  141. );
  142. tabi = (abi_default
  143. ,abi_powerpc_sysv,abi_powerpc_aix
  144. );
  145. {*****************************************************************************
  146. Structures
  147. *****************************************************************************}
  148. type
  149. { Abstract linker class which is implemented in link module }
  150. TAbstractLinker = class
  151. end;
  152. TAbstractLinkerClass = class of TAbstractLinker;
  153. { Abstract assembler class which is implemented in assemble module }
  154. TAbstractAssembler = class
  155. end;
  156. TAbstractAssemblerClass = class of TAbstractAssembler;
  157. palignmentinfo = ^talignmentinfo;
  158. talignmentinfo = record
  159. procalign,
  160. loopalign,
  161. jumpalign,
  162. constalignmin,
  163. constalignmax,
  164. varalignmin,
  165. varalignmax,
  166. localalignmin,
  167. localalignmax,
  168. recordalignmin,
  169. recordalignmax,
  170. maxCrecordalign : longint;
  171. end;
  172. tasmflags = (af_none,
  173. af_outputbinary,af_allowdirect,
  174. af_needar,af_smartlink_sections,
  175. af_labelprefix_only_inside_procedure,
  176. af_supports_dwarf
  177. );
  178. pasminfo = ^tasminfo;
  179. tasminfo = record
  180. id : tasm;
  181. idtxt : string[9];
  182. asmbin : string[8];
  183. asmcmd : string[50];
  184. supported_target : tsystem;
  185. flags : set of tasmflags;
  186. labelprefix : string[3];
  187. comment : string[3];
  188. end;
  189. parinfo = ^tarinfo;
  190. tarinfo = record
  191. id : tar;
  192. arcmd : string[50];
  193. end;
  194. presinfo = ^tresinfo;
  195. tresinfo = record
  196. id : tres;
  197. resbin : string[8];
  198. rescmd : string[50];
  199. end;
  200. tsystemflags = (tf_none,
  201. tf_under_development,
  202. tf_need_export,tf_needs_isconsole,
  203. tf_code_small,tf_static_reg_based,
  204. tf_needs_symbol_size,
  205. tf_smartlink_sections,
  206. tf_needs_dwarf_cfi,
  207. tf_use_8_3,
  208. tf_pic_uses_got,
  209. tf_library_needs_pic
  210. );
  211. psysteminfo = ^tsysteminfo;
  212. { using packed causes bus errors on processors which require alignment }
  213. tsysteminfo = record
  214. system : tsystem;
  215. name : string[34];
  216. shortname : string[9];
  217. flags : set of tsystemflags;
  218. cpu : tsystemcpu;
  219. unit_env : string[16];
  220. extradefines : string[40];
  221. exeext,
  222. defext,
  223. scriptext,
  224. smartext,
  225. unitext,
  226. unitlibext,
  227. asmext,
  228. objext,
  229. resext,
  230. resobjext : string[4];
  231. sharedlibext : string[10];
  232. staticlibext,
  233. staticlibprefix : string[4];
  234. sharedlibprefix : string[4];
  235. sharedClibext : string[10];
  236. staticClibext,
  237. staticClibprefix : string[4];
  238. sharedClibprefix : string[4];
  239. p_ext_support:Boolean; {Whether extension .p is supported by default}
  240. Cprefix : string[2];
  241. newline : string[2];
  242. dirsep : char;
  243. files_case_relevent : boolean;
  244. assem : tasm;
  245. assemextern : tasm; { external assembler, used by -a }
  246. link : tabstractlinkerclass;
  247. linkextern : tabstractlinkerclass; { external linker, used by -s }
  248. ar : tar;
  249. res : tres;
  250. script : tscripttype;
  251. endian : tendian;
  252. alignment : talignmentinfo;
  253. {
  254. Offset from the argument pointer register to the first
  255. argument's address. On some machines it may depend on
  256. the data type of the function.
  257. (see also FIRST_PARM_OFFSET in GCC source)
  258. }
  259. first_parm_offset : longint;
  260. stacksize : longint;
  261. DllScanSupported : boolean;
  262. use_function_relative_addresses : boolean;
  263. abi : tabi;
  264. end;
  265. const
  266. { alias for supported_target field in tasminfo }
  267. system_any = system_none;
  268. system_linux : set of tsystem = [system_i386_linux,system_x86_64_linux,system_powerpc_linux,
  269. system_arm_linux,system_sparc_linux,system_alpha_linux,system_m68k_linux];
  270. cpu2str : array[TSystemCpu] of string =
  271. ('','i386','m68k','alpha','powerpc','sparc','vm','ia64','x86_64',
  272. 'mips','arm');
  273. var
  274. targetinfos : array[tsystem] of psysteminfo;
  275. arinfos : array[tar] of parinfo;
  276. resinfos : array[tres] of presinfo;
  277. asminfos : array[tasm] of pasminfo;
  278. source_info : tsysteminfo;
  279. target_cpu : tsystemcpu;
  280. target_info : tsysteminfo;
  281. target_asm : tasminfo;
  282. target_ar : tarinfo;
  283. target_res : tresinfo;
  284. target_cpu_string,
  285. target_os_string : string[12]; { for rtl/<X>/,fcl/<X>/, etc. }
  286. target_full_string : string[24];
  287. function set_target(t:tsystem):boolean;
  288. function set_target_asm(t:tasm):boolean;
  289. function set_target_ar(t:tar):boolean;
  290. function set_target_res(t:tres):boolean;
  291. function set_target_by_string(const s : string) : boolean;
  292. function set_target_asm_by_string(const s : string) : boolean;
  293. procedure set_source_info(const ti : tsysteminfo);
  294. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  295. procedure RegisterTarget(const r:tsysteminfo);
  296. procedure RegisterRes(const r:tresinfo);
  297. procedure RegisterAr(const r:tarinfo);
  298. { Register the external linker. This routine is called to setup the
  299. class to use for the linker. It returns the tsysteminfo structure
  300. updated with the correct linker class for external linking.
  301. }
  302. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  303. { Register the internal linker. This routine is called to setup the
  304. class to use for the linker. It returns the tsysteminfo structure
  305. updated with the correct linker class for internal linking.
  306. If internal linking is not supported, this class can be set
  307. to nil.
  308. }
  309. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  310. procedure InitSystems;
  311. {$ifdef FreeBSD}
  312. function GetOSRelDate:Longint;
  313. {$endif}
  314. implementation
  315. uses
  316. cutils{$ifdef FreeBSD},SysCtl,BaseUnix{$endif};
  317. {****************************************************************************
  318. OS runtime version detection utility routine
  319. ****************************************************************************}
  320. {$ifdef FreeBSD}
  321. function GetOSRelDate:Longint;
  322. var
  323. mib : array[0..1] of cint;
  324. rval : cint;
  325. len : size_t;
  326. i : longint;
  327. v : longint;
  328. oerrno : cint;
  329. S : AnsiString;
  330. Begin
  331. s:='ab';
  332. SetLength(S,50);
  333. mib[0] := CTL_KERN;
  334. mib[1] := KERN_OSRELDATE;
  335. len := 4;
  336. oerrno:= fpgeterrno;
  337. if (FPsysctl(@mib, 2, pchar(@v), @len, NIL, 0) = -1) Then
  338. Begin
  339. if (fpgeterrno = ESysENOMEM) Then
  340. fpseterrno(oerrno);
  341. GetOSRelDate:=0;
  342. End
  343. else
  344. GetOSRelDate:=v;
  345. End;
  346. {$endif}
  347. {****************************************************************************
  348. Target setting
  349. ****************************************************************************}
  350. function set_target(t:tsystem):boolean;
  351. begin
  352. set_target:=false;
  353. if assigned(targetinfos[t]) then
  354. begin
  355. target_info:=targetinfos[t]^;
  356. set_target_asm(target_info.assem);
  357. set_target_ar(target_info.ar);
  358. set_target_res(target_info.res);
  359. target_cpu:=target_info.cpu;
  360. target_os_string:=lower(target_info.shortname);
  361. target_cpu_string:=cpu2str[target_cpu];
  362. target_full_string:=target_cpu_string+'-'+target_os_string;
  363. set_target:=true;
  364. exit;
  365. end;
  366. end;
  367. function set_target_asm(t:tasm):boolean;
  368. begin
  369. set_target_asm:=false;
  370. if assigned(asminfos[t]) and
  371. ((asminfos[t]^.supported_target=target_info.system) or
  372. (asminfos[t]^.supported_target=system_any)) then
  373. begin
  374. target_asm:=asminfos[t]^;
  375. set_target_asm:=true;
  376. exit;
  377. end;
  378. end;
  379. function set_target_ar(t:tar):boolean;
  380. begin
  381. set_target_ar:=false;
  382. if assigned(arinfos[t]) then
  383. begin
  384. target_ar:=arinfos[t]^;
  385. set_target_ar:=true;
  386. exit;
  387. end;
  388. end;
  389. function set_target_res(t:tres):boolean;
  390. begin
  391. set_target_res:=false;
  392. if assigned(resinfos[t]) then
  393. begin
  394. target_res:=resinfos[t]^;
  395. set_target_res:=true;
  396. exit;
  397. end;
  398. end;
  399. function set_target_by_string(const s : string) : boolean;
  400. var
  401. hs : string;
  402. t : tsystem;
  403. begin
  404. set_target_by_string:=false;
  405. { this should be case insensitive !! PM }
  406. hs:=upper(s);
  407. for t:=low(tsystem) to high(tsystem) do
  408. if assigned(targetinfos[t]) and
  409. (upper(targetinfos[t]^.shortname)=hs) then
  410. begin
  411. set_target_by_string:=set_target(t);
  412. exit;
  413. end;
  414. end;
  415. function set_target_asm_by_string(const s : string) : boolean;
  416. var
  417. hs : string;
  418. t : tasm;
  419. begin
  420. set_target_asm_by_string:=false;
  421. { this should be case insensitive !! PM }
  422. hs:=upper(s);
  423. for t:=low(tasm) to high(tasm) do
  424. if assigned(asminfos[t]) and
  425. (asminfos[t]^.idtxt=hs) then
  426. begin
  427. set_target_asm_by_string:=set_target_asm(t);
  428. exit;
  429. end;
  430. end;
  431. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  432. begin
  433. with d do
  434. begin
  435. { general update rules:
  436. minimum: if higher then update
  437. maximum: if lower then update or if undefined then update }
  438. if s.procalign>procalign then
  439. procalign:=s.procalign;
  440. if s.loopalign>loopalign then
  441. loopalign:=s.loopalign;
  442. if s.jumpalign>jumpalign then
  443. jumpalign:=s.jumpalign;
  444. if s.constalignmin>constalignmin then
  445. constalignmin:=s.constalignmin;
  446. if (constalignmax=0) or
  447. ((s.constalignmax>0) and (s.constalignmax<constalignmax)) then
  448. constalignmax:=s.constalignmax;
  449. if s.varalignmin>varalignmin then
  450. varalignmin:=s.varalignmin;
  451. if (varalignmax=0) or
  452. ((s.varalignmax>0) and (s.varalignmax<varalignmax)) then
  453. varalignmax:=s.varalignmax;
  454. if s.localalignmin>localalignmin then
  455. localalignmin:=s.localalignmin;
  456. if (localalignmax=0) or
  457. ((s.localalignmax>0) and (s.localalignmax<localalignmax)) then
  458. localalignmax:=s.localalignmax;
  459. if s.recordalignmin>recordalignmin then
  460. recordalignmin:=s.recordalignmin;
  461. if (recordalignmax=0) or
  462. ((s.recordalignmax>0) and (s.recordalignmax<recordalignmax)) then
  463. recordalignmax:=s.recordalignmax;
  464. if (maxCrecordalign=0) or
  465. ((s.maxCrecordalign>0) and (s.maxCrecordalign<maxCrecordalign)) then
  466. maxCrecordalign:=s.maxCrecordalign;
  467. end;
  468. end;
  469. {****************************************************************************
  470. Target registration
  471. ****************************************************************************}
  472. procedure RegisterTarget(const r:tsysteminfo);
  473. var
  474. t : tsystem;
  475. begin
  476. t:=r.system;
  477. if assigned(targetinfos[t]) then
  478. writeln('Warning: Target is already registered!')
  479. else
  480. Getmem(targetinfos[t],sizeof(tsysteminfo));
  481. targetinfos[t]^:=r;
  482. end;
  483. procedure RegisterRes(const r:tresinfo);
  484. var
  485. t : tres;
  486. begin
  487. t:=r.id;
  488. if assigned(resinfos[t]) then
  489. writeln('Warning: resourcecompiler is already registered!')
  490. else
  491. Getmem(resinfos[t],sizeof(tresinfo));
  492. resinfos[t]^:=r;
  493. end;
  494. procedure RegisterAr(const r:tarinfo);
  495. var
  496. t : tar;
  497. begin
  498. t:=r.id;
  499. if assigned(arinfos[t]) then
  500. writeln('Warning: ar is already registered!')
  501. else
  502. Getmem(arinfos[t],sizeof(tarinfo));
  503. arinfos[t]^:=r;
  504. end;
  505. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  506. begin
  507. system_info.linkextern := c;
  508. end;
  509. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  510. begin
  511. system_info.link := c;
  512. end;
  513. procedure DeregisterInfos;
  514. var
  515. assem : tasm;
  516. target : tsystem;
  517. ar : tar;
  518. res : tres;
  519. begin
  520. for target:=low(tsystem) to high(tsystem) do
  521. if assigned(targetinfos[target]) then
  522. begin
  523. freemem(targetinfos[target],sizeof(tsysteminfo));
  524. targetinfos[target]:=nil;
  525. end;
  526. for assem:=low(tasm) to high(tasm) do
  527. if assigned(asminfos[assem]) then
  528. begin
  529. freemem(asminfos[assem],sizeof(tasminfo));
  530. asminfos[assem]:=nil;
  531. end;
  532. for ar:=low(tar) to high(tar) do
  533. if assigned(arinfos[ar]) then
  534. begin
  535. freemem(arinfos[ar],sizeof(tarinfo));
  536. arinfos[ar]:=nil;
  537. end;
  538. for res:=low(tres) to high(tres) do
  539. if assigned(resinfos[res]) then
  540. begin
  541. freemem(resinfos[res],sizeof(tresinfo));
  542. resinfos[res]:=nil;
  543. end;
  544. end;
  545. {****************************************************************************
  546. Initialization of default target
  547. ****************************************************************************}
  548. procedure default_target(t:tsystem);
  549. begin
  550. set_target(t);
  551. if source_info.name='' then
  552. source_info:=target_info;
  553. end;
  554. procedure set_source_info(const ti : tsysteminfo);
  555. begin
  556. { can't use message() here (PFV) }
  557. if source_info.name<>'' then
  558. Writeln('Warning: Source OS Redefined!');
  559. source_info:=ti;
  560. end;
  561. procedure InitSystems;
  562. begin
  563. { Now default target, this is dependent on the target cpu define,
  564. when the define is the same as the source cpu then we use the source
  565. os, else we pick a default }
  566. {$ifdef i386}
  567. {$ifdef cpu86}
  568. default_target(source_info.system);
  569. {$else cpu86}
  570. {$ifdef linux}
  571. default_target(system_i386_linux);
  572. {$endif}
  573. {$ifdef freebsd}
  574. default_target(system_i386_freebsd);
  575. {$endif}
  576. {$endif cpu86}
  577. {$endif i386}
  578. {$ifdef x86_64}
  579. {$ifdef cpux86_64}
  580. default_target(source_info.system);
  581. {$define source_system_set}
  582. {$else cpux86_64}
  583. {$ifdef linux}
  584. default_target(system_x86_64_linux);
  585. {$define source_system_set}
  586. {$endif}
  587. {$ifdef freebsd}
  588. default_target(system_x86_64_freebsd);
  589. {$define source_system_set}
  590. {$endif}
  591. { default is linux }
  592. {$ifndef source_system_set}
  593. default_target(system_x86_64_linux);
  594. {$endif source_system_set}
  595. {$endif cpux86_64}
  596. {$endif x86_64}
  597. {$ifdef m68k}
  598. {$ifdef cpu68}
  599. default_target(source_info.target);
  600. {$else cpu68}
  601. default_target(system_m68k_linux);
  602. {$endif cpu68}
  603. {$endif m68k}
  604. {$ifdef alpha}
  605. {$ifdef cpualpha}
  606. default_target(source_info.system);
  607. {$else cpualpha}
  608. default_target(system_alpha_linux);
  609. {$endif cpualpha}
  610. {$endif alpha}
  611. {$ifdef powerpc}
  612. {$ifdef cpupowerpc}
  613. default_target(source_info.system);
  614. {$else cpupowerpc}
  615. default_target(system_powerpc_linux);
  616. {$endif cpupowerpc}
  617. {$endif powerpc}
  618. {$ifdef sparc}
  619. {$ifdef cpusparc}
  620. default_target(source_info.system);
  621. {$else cpusparc}
  622. default_target(system_sparc_linux);
  623. {$endif cpusparc}
  624. {$endif sparc}
  625. {$ifdef arm}
  626. {$ifdef cpuarm}
  627. default_target(source_info.system);
  628. {$else cpuarm}
  629. default_target(system_arm_linux);
  630. {$endif cpuarm}
  631. {$endif arm}
  632. end;
  633. initialization
  634. source_info.name:='';
  635. finalization
  636. DeregisterInfos;
  637. end.