systems.pas 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722
  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. );
  108. tasm = (as_none
  109. ,as_gas { standard gnu assembler }
  110. ,as_i386_as_aout
  111. ,as_i386_nasmcoff
  112. ,as_i386_nasmwin32
  113. ,as_i386_nasmwdosx
  114. ,as_i386_nasmelf
  115. ,as_i386_nasmobj
  116. ,as_i386_nasmbeos
  117. ,as_i386_tasm
  118. ,as_i386_masm
  119. ,as_i386_wasm
  120. ,as_i386_coff
  121. ,as_i386_pecoff
  122. ,as_i386_elf32
  123. ,as_i386_pecoffwdosx
  124. ,as_m68k_mit
  125. ,as_powerpc_mpw
  126. ,as_darwin
  127. ,as_x86_64_masm
  128. ,as_x86_64_pecoff
  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
  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. cpu2str : array[TSystemCpu] of string =
  269. ('','i386','m68k','alpha','powerpc','sparc','vm','ia64','x86_64',
  270. 'mips','arm');
  271. var
  272. targetinfos : array[tsystem] of psysteminfo;
  273. arinfos : array[tar] of parinfo;
  274. resinfos : array[tres] of presinfo;
  275. asminfos : array[tasm] of pasminfo;
  276. source_info : tsysteminfo;
  277. target_cpu : tsystemcpu;
  278. target_info : tsysteminfo;
  279. target_asm : tasminfo;
  280. target_ar : tarinfo;
  281. target_res : tresinfo;
  282. target_cpu_string,
  283. target_os_string : string[12]; { for rtl/<X>/,fcl/<X>/, etc. }
  284. target_full_string : string[24];
  285. function set_target(t:tsystem):boolean;
  286. function set_target_asm(t:tasm):boolean;
  287. function set_target_ar(t:tar):boolean;
  288. function set_target_res(t:tres):boolean;
  289. function set_target_by_string(const s : string) : boolean;
  290. function set_target_asm_by_string(const s : string) : boolean;
  291. procedure set_source_info(const ti : tsysteminfo);
  292. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  293. procedure RegisterTarget(const r:tsysteminfo);
  294. procedure RegisterRes(const r:tresinfo);
  295. procedure RegisterAr(const r:tarinfo);
  296. { Register the external linker. This routine is called to setup the
  297. class to use for the linker. It returns the tsysteminfo structure
  298. updated with the correct linker class for external linking.
  299. }
  300. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  301. { Register the internal linker. This routine is called to setup the
  302. class to use for the linker. It returns the tsysteminfo structure
  303. updated with the correct linker class for internal linking.
  304. If internal linking is not supported, this class can be set
  305. to nil.
  306. }
  307. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  308. procedure InitSystems;
  309. {$ifdef FreeBSD}
  310. function GetOSRelDate:Longint;
  311. {$endif}
  312. implementation
  313. uses
  314. cutils{$ifdef FreeBSD},SysCtl,BaseUnix{$endif};
  315. {****************************************************************************
  316. OS runtime version detection utility routine
  317. ****************************************************************************}
  318. {$ifdef FreeBSD}
  319. function GetOSRelDate:Longint;
  320. var
  321. mib : array[0..1] of cint;
  322. rval : cint;
  323. len : size_t;
  324. i : longint;
  325. v : longint;
  326. oerrno : cint;
  327. S : AnsiString;
  328. Begin
  329. s:='ab';
  330. SetLength(S,50);
  331. mib[0] := CTL_KERN;
  332. mib[1] := KERN_OSRELDATE;
  333. len := 4;
  334. oerrno:= fpgeterrno;
  335. if (FPsysctl(@mib, 2, pchar(@v), @len, NIL, 0) = -1) Then
  336. Begin
  337. if (fpgeterrno = ESysENOMEM) Then
  338. fpseterrno(oerrno);
  339. GetOSRelDate:=0;
  340. End
  341. else
  342. GetOSRelDate:=v;
  343. End;
  344. {$endif}
  345. {****************************************************************************
  346. Target setting
  347. ****************************************************************************}
  348. function set_target(t:tsystem):boolean;
  349. begin
  350. set_target:=false;
  351. if assigned(targetinfos[t]) then
  352. begin
  353. target_info:=targetinfos[t]^;
  354. set_target_asm(target_info.assem);
  355. set_target_ar(target_info.ar);
  356. set_target_res(target_info.res);
  357. target_cpu:=target_info.cpu;
  358. target_os_string:=lower(target_info.shortname);
  359. target_cpu_string:=cpu2str[target_cpu];
  360. target_full_string:=target_cpu_string+'-'+target_os_string;
  361. set_target:=true;
  362. exit;
  363. end;
  364. end;
  365. function set_target_asm(t:tasm):boolean;
  366. begin
  367. set_target_asm:=false;
  368. if assigned(asminfos[t]) and
  369. ((asminfos[t]^.supported_target=target_info.system) or
  370. (asminfos[t]^.supported_target=system_any)) then
  371. begin
  372. target_asm:=asminfos[t]^;
  373. set_target_asm:=true;
  374. exit;
  375. end;
  376. end;
  377. function set_target_ar(t:tar):boolean;
  378. begin
  379. set_target_ar:=false;
  380. if assigned(arinfos[t]) then
  381. begin
  382. target_ar:=arinfos[t]^;
  383. set_target_ar:=true;
  384. exit;
  385. end;
  386. end;
  387. function set_target_res(t:tres):boolean;
  388. begin
  389. set_target_res:=false;
  390. if assigned(resinfos[t]) then
  391. begin
  392. target_res:=resinfos[t]^;
  393. set_target_res:=true;
  394. exit;
  395. end;
  396. end;
  397. function set_target_by_string(const s : string) : boolean;
  398. var
  399. hs : string;
  400. t : tsystem;
  401. begin
  402. set_target_by_string:=false;
  403. { this should be case insensitive !! PM }
  404. hs:=upper(s);
  405. for t:=low(tsystem) to high(tsystem) do
  406. if assigned(targetinfos[t]) and
  407. (upper(targetinfos[t]^.shortname)=hs) then
  408. begin
  409. set_target_by_string:=set_target(t);
  410. exit;
  411. end;
  412. end;
  413. function set_target_asm_by_string(const s : string) : boolean;
  414. var
  415. hs : string;
  416. t : tasm;
  417. begin
  418. set_target_asm_by_string:=false;
  419. { this should be case insensitive !! PM }
  420. hs:=upper(s);
  421. for t:=low(tasm) to high(tasm) do
  422. if assigned(asminfos[t]) and
  423. (asminfos[t]^.idtxt=hs) then
  424. begin
  425. set_target_asm_by_string:=set_target_asm(t);
  426. exit;
  427. end;
  428. end;
  429. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  430. begin
  431. with d do
  432. begin
  433. { general update rules:
  434. minimum: if higher then update
  435. maximum: if lower then update or if undefined then update }
  436. if s.procalign>procalign then
  437. procalign:=s.procalign;
  438. if s.loopalign>loopalign then
  439. loopalign:=s.loopalign;
  440. if s.jumpalign>jumpalign then
  441. jumpalign:=s.jumpalign;
  442. if s.constalignmin>constalignmin then
  443. constalignmin:=s.constalignmin;
  444. if (constalignmax=0) or
  445. ((s.constalignmax>0) and (s.constalignmax<constalignmax)) then
  446. constalignmax:=s.constalignmax;
  447. if s.varalignmin>varalignmin then
  448. varalignmin:=s.varalignmin;
  449. if (varalignmax=0) or
  450. ((s.varalignmax>0) and (s.varalignmax<varalignmax)) then
  451. varalignmax:=s.varalignmax;
  452. if s.localalignmin>localalignmin then
  453. localalignmin:=s.localalignmin;
  454. if (localalignmax=0) or
  455. ((s.localalignmax>0) and (s.localalignmax<localalignmax)) then
  456. localalignmax:=s.localalignmax;
  457. if s.recordalignmin>recordalignmin then
  458. recordalignmin:=s.recordalignmin;
  459. if (recordalignmax=0) or
  460. ((s.recordalignmax>0) and (s.recordalignmax<recordalignmax)) then
  461. recordalignmax:=s.recordalignmax;
  462. if (maxCrecordalign=0) or
  463. ((s.maxCrecordalign>0) and (s.maxCrecordalign<maxCrecordalign)) then
  464. maxCrecordalign:=s.maxCrecordalign;
  465. end;
  466. end;
  467. {****************************************************************************
  468. Target registration
  469. ****************************************************************************}
  470. procedure RegisterTarget(const r:tsysteminfo);
  471. var
  472. t : tsystem;
  473. begin
  474. t:=r.system;
  475. if assigned(targetinfos[t]) then
  476. writeln('Warning: Target is already registered!')
  477. else
  478. Getmem(targetinfos[t],sizeof(tsysteminfo));
  479. targetinfos[t]^:=r;
  480. end;
  481. procedure RegisterRes(const r:tresinfo);
  482. var
  483. t : tres;
  484. begin
  485. t:=r.id;
  486. if assigned(resinfos[t]) then
  487. writeln('Warning: resourcecompiler is already registered!')
  488. else
  489. Getmem(resinfos[t],sizeof(tresinfo));
  490. resinfos[t]^:=r;
  491. end;
  492. procedure RegisterAr(const r:tarinfo);
  493. var
  494. t : tar;
  495. begin
  496. t:=r.id;
  497. if assigned(arinfos[t]) then
  498. writeln('Warning: ar is already registered!')
  499. else
  500. Getmem(arinfos[t],sizeof(tarinfo));
  501. arinfos[t]^:=r;
  502. end;
  503. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  504. begin
  505. system_info.linkextern := c;
  506. end;
  507. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  508. begin
  509. system_info.link := c;
  510. end;
  511. procedure DeregisterInfos;
  512. var
  513. assem : tasm;
  514. target : tsystem;
  515. ar : tar;
  516. res : tres;
  517. begin
  518. for target:=low(tsystem) to high(tsystem) do
  519. if assigned(targetinfos[target]) then
  520. begin
  521. freemem(targetinfos[target],sizeof(tsysteminfo));
  522. targetinfos[target]:=nil;
  523. end;
  524. for assem:=low(tasm) to high(tasm) do
  525. if assigned(asminfos[assem]) then
  526. begin
  527. freemem(asminfos[assem],sizeof(tasminfo));
  528. asminfos[assem]:=nil;
  529. end;
  530. for ar:=low(tar) to high(tar) do
  531. if assigned(arinfos[ar]) then
  532. begin
  533. freemem(arinfos[ar],sizeof(tarinfo));
  534. arinfos[ar]:=nil;
  535. end;
  536. for res:=low(tres) to high(tres) do
  537. if assigned(resinfos[res]) then
  538. begin
  539. freemem(resinfos[res],sizeof(tresinfo));
  540. resinfos[res]:=nil;
  541. end;
  542. end;
  543. {****************************************************************************
  544. Initialization of default target
  545. ****************************************************************************}
  546. procedure default_target(t:tsystem);
  547. begin
  548. set_target(t);
  549. if source_info.name='' then
  550. source_info:=target_info;
  551. end;
  552. procedure set_source_info(const ti : tsysteminfo);
  553. begin
  554. { can't use message() here (PFV) }
  555. if source_info.name<>'' then
  556. Writeln('Warning: Source OS Redefined!');
  557. source_info:=ti;
  558. end;
  559. procedure InitSystems;
  560. begin
  561. { Now default target, this is dependent on the target cpu define,
  562. when the define is the same as the source cpu then we use the source
  563. os, else we pick a default }
  564. {$ifdef i386}
  565. {$ifdef cpu86}
  566. default_target(source_info.system);
  567. {$else cpu86}
  568. {$ifdef linux}
  569. default_target(system_i386_linux);
  570. {$endif}
  571. {$ifdef freebsd}
  572. default_target(system_i386_freebsd);
  573. {$endif}
  574. {$endif cpu86}
  575. {$endif i386}
  576. {$ifdef x86_64}
  577. {$ifdef cpux86_64}
  578. default_target(source_info.system);
  579. {$define source_system_set}
  580. {$else cpux86_64}
  581. {$ifdef linux}
  582. default_target(system_x86_64_linux);
  583. {$define source_system_set}
  584. {$endif}
  585. {$ifdef freebsd}
  586. default_target(system_x86_64_freebsd);
  587. {$define source_system_set}
  588. {$endif}
  589. { default is linux }
  590. {$ifndef source_system_set}
  591. default_target(system_x86_64_linux);
  592. {$endif source_system_set}
  593. {$endif cpux86_64}
  594. {$endif x86_64}
  595. {$ifdef m68k}
  596. {$ifdef cpu68}
  597. default_target(source_info.target);
  598. {$else cpu68}
  599. default_target(system_m68k_linux);
  600. {$endif cpu68}
  601. {$endif m68k}
  602. {$ifdef alpha}
  603. {$ifdef cpualpha}
  604. default_target(source_info.system);
  605. {$else cpualpha}
  606. default_target(system_alpha_linux);
  607. {$endif cpualpha}
  608. {$endif alpha}
  609. {$ifdef powerpc}
  610. {$ifdef cpupowerpc}
  611. default_target(source_info.system);
  612. {$else cpupowerpc}
  613. default_target(system_powerpc_linux);
  614. {$endif cpupowerpc}
  615. {$endif powerpc}
  616. {$ifdef sparc}
  617. {$ifdef cpusparc}
  618. default_target(source_info.system);
  619. {$else cpusparc}
  620. default_target(system_sparc_linux);
  621. {$endif cpusparc}
  622. {$endif sparc}
  623. {$ifdef arm}
  624. {$ifdef cpuarm}
  625. default_target(source_info.system);
  626. {$else cpuarm}
  627. default_target(system_arm_linux);
  628. {$endif cpuarm}
  629. {$endif arm}
  630. end;
  631. initialization
  632. source_info.name:='';
  633. finalization
  634. DeregisterInfos;
  635. end.