systems.pas 21 KB

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