systems.pas 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
  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. tasmmode= (asmmode_none
  47. { standard assembler (cpu dependant) with full parsing }
  48. ,asmmode_standard
  49. ,asmmode_i386_att
  50. ,asmmode_i386_intel
  51. ,asmmode_ppc_gas
  52. ,asmmode_ppc_motorola
  53. ,asmmode_arm_gas
  54. ,asmmode_sparc_gas
  55. ,asmmode_x86_64_gas
  56. ,asmmode_m68k_mot
  57. );
  58. (* IMPORTANT NOTE:
  59. the integer value of this enum is stored in PPU
  60. files to recognize the target, so if you add new targets
  61. allways add them at end PM
  62. FURTHERMORE : Make sure that this branch values are
  63. consistant with the main branch version always. (CEC)
  64. *)
  65. type
  66. tsystem =
  67. (
  68. system_none, { 0 }
  69. obsolete_system_i386_GO32V1,{ 1 }
  70. system_i386_GO32V2, { 2 }
  71. system_i386_linux, { 3 }
  72. system_i386_OS2, { 4 }
  73. system_i386_Win32, { 5 }
  74. system_i386_freebsd, { 6 }
  75. system_m68k_Amiga, { 7 }
  76. system_m68k_Atari, { 8 }
  77. system_m68k_Mac, { 9 }
  78. system_m68k_linux, { 10 }
  79. system_m68k_PalmOS, { 11 }
  80. system_alpha_linux, { 12 }
  81. system_powerpc_linux, { 13 }
  82. system_powerpc_macos, { 14 }
  83. system_i386_sunos, { 15 }
  84. system_i386_beos, { 16 }
  85. system_i386_netbsd, { 17 }
  86. system_m68k_netbsd, { 18 }
  87. system_i386_Netware, { 19 }
  88. system_i386_qnx, { 20 }
  89. system_i386_wdosx, { 21 }
  90. system_sparc_sunos, { 22 }
  91. system_sparc_linux, { 23 }
  92. system_i386_openbsd, { 24 }
  93. system_m68k_openbsd, { 25 }
  94. system_x86_64_linux, { 26 }
  95. system_powerpc_darwin, { 27 }
  96. system_i386_EMX, { 28 }
  97. system_powerpc_netbsd, { 29 }
  98. system_powerpc_openbsd, { 30 }
  99. system_arm_linux, { 31 }
  100. system_i386_watcom, { 32 }
  101. system_powerpc_MorphOS, { 33 }
  102. system_x86_64_freebsd { 34 }
  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. );
  202. psysteminfo = ^tsysteminfo;
  203. { using packed causes bus errors on processors which require alignment }
  204. tsysteminfo = record
  205. system : tsystem;
  206. name : string[34];
  207. shortname : string[9];
  208. flags : set of tsystemflags;
  209. cpu : tsystemcpu;
  210. unit_env : string[12];
  211. extradefines : string[40];
  212. sourceext,
  213. pasext,
  214. exeext,
  215. defext,
  216. scriptext,
  217. smartext,
  218. unitext,
  219. unitlibext,
  220. asmext,
  221. objext,
  222. resext,
  223. resobjext : string[4];
  224. sharedlibext : string[10];
  225. staticlibext,
  226. staticlibprefix : string[4];
  227. sharedlibprefix : string[4];
  228. sharedClibext : string[10];
  229. staticClibext,
  230. staticClibprefix : string[4];
  231. sharedClibprefix : string[4];
  232. Cprefix : string[2];
  233. newline : string[2];
  234. dirsep : char;
  235. files_case_relevent : boolean;
  236. assem : tasm;
  237. assemextern : tasm; { external assembler, used by -a }
  238. link : tabstractlinkerclass;
  239. linkextern : tabstractlinkerclass; { external linker, used by -s }
  240. ar : tar;
  241. res : tres;
  242. script : tscripttype;
  243. endian : tendian;
  244. alignment : talignmentinfo;
  245. {
  246. Offset from the argument pointer register to the first
  247. argument's address. On some machines it may depend on
  248. the data type of the function.
  249. (see also FIRST_PARM_OFFSET in GCC source)
  250. }
  251. first_parm_offset : longint;
  252. heapsize,
  253. stacksize : longint;
  254. DllScanSupported : boolean;
  255. use_function_relative_addresses : boolean;
  256. abi : tabi;
  257. end;
  258. const
  259. { alias for supported_target field in tasminfo }
  260. system_any = system_none;
  261. cpu2str : array[TSystemCpu] of string =
  262. ('','i386','m68k','alpha','powerpc','sparc','vm','ia64','x86_64',
  263. 'mips','arm');
  264. var
  265. targetinfos : array[tsystem] of psysteminfo;
  266. arinfos : array[tar] of parinfo;
  267. resinfos : array[tres] of presinfo;
  268. asminfos : array[tasm] of pasminfo;
  269. source_info : tsysteminfo;
  270. target_cpu : tsystemcpu;
  271. target_info : tsysteminfo;
  272. target_asm : tasminfo;
  273. target_ar : tarinfo;
  274. target_res : tresinfo;
  275. target_path : string[12]; { for rtl/<X>/,fcl/<X>/, etc. }
  276. function set_target(t:tsystem):boolean;
  277. function set_target_asm(t:tasm):boolean;
  278. function set_target_ar(t:tar):boolean;
  279. function set_target_res(t:tres):boolean;
  280. function set_target_by_string(const s : string) : boolean;
  281. function set_target_asm_by_string(const s : string) : boolean;
  282. procedure set_source_info(const ti : tsysteminfo);
  283. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  284. procedure RegisterTarget(const r:tsysteminfo);
  285. procedure RegisterRes(const r:tresinfo);
  286. procedure RegisterAr(const r:tarinfo);
  287. { Register the external linker. This routine is called to setup the
  288. class to use for the linker. It returns the tsysteminfo structure
  289. updated with the correct linker class for external linking.
  290. }
  291. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  292. { Register the internal linker. This routine is called to setup the
  293. class to use for the linker. It returns the tsysteminfo structure
  294. updated with the correct linker class for internal linking.
  295. If internal linking is not supported, this class can be set
  296. to nil.
  297. }
  298. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  299. procedure InitSystems;
  300. {$ifdef FreeBSD}
  301. function GetOSRelDate:Longint;
  302. {$endif}
  303. implementation
  304. uses
  305. cutils{$ifdef FreeBSD},SysCtl,BaseUnix{$endif};
  306. {****************************************************************************
  307. OS runtime version detection utility routine
  308. ****************************************************************************}
  309. {$ifdef FreeBSD}
  310. function GetOSRelDate:Longint;
  311. var
  312. mib : array[0..1] of cint;
  313. rval : cint;
  314. len : size_t;
  315. i : longint;
  316. v : longint;
  317. oerrno : cint;
  318. S : AnsiString;
  319. Begin
  320. s:='ab';
  321. SetLength(S,50);
  322. mib[0] := CTL_KERN;
  323. mib[1] := KERN_OSRELDATE;
  324. len := 4;
  325. oerrno:= fpgeterrno;
  326. if (FPsysctl(@mib, 2, pchar(@v), @len, NIL, 0) = -1) Then
  327. Begin
  328. if (fpgeterrno = ESysENOMEM) Then
  329. fpseterrno(oerrno);
  330. GetOSRelDate:=0;
  331. End
  332. else
  333. GetOSRelDate:=v;
  334. End;
  335. {$endif}
  336. {****************************************************************************
  337. Target setting
  338. ****************************************************************************}
  339. function set_target(t:tsystem):boolean;
  340. begin
  341. set_target:=false;
  342. if assigned(targetinfos[t]) then
  343. begin
  344. target_info:=targetinfos[t]^;
  345. set_target_asm(target_info.assem);
  346. set_target_ar(target_info.ar);
  347. set_target_res(target_info.res);
  348. target_path:=lower(target_info.shortname);
  349. target_cpu:=target_info.cpu;
  350. set_target:=true;
  351. exit;
  352. end;
  353. end;
  354. function set_target_asm(t:tasm):boolean;
  355. begin
  356. set_target_asm:=false;
  357. if assigned(asminfos[t]) then
  358. begin
  359. target_asm:=asminfos[t]^;
  360. set_target_asm:=true;
  361. exit;
  362. end;
  363. end;
  364. function set_target_ar(t:tar):boolean;
  365. begin
  366. set_target_ar:=false;
  367. if assigned(arinfos[t]) then
  368. begin
  369. target_ar:=arinfos[t]^;
  370. set_target_ar:=true;
  371. exit;
  372. end;
  373. end;
  374. function set_target_res(t:tres):boolean;
  375. begin
  376. set_target_res:=false;
  377. if assigned(resinfos[t]) then
  378. begin
  379. target_res:=resinfos[t]^;
  380. set_target_res:=true;
  381. exit;
  382. end;
  383. end;
  384. function set_target_by_string(const s : string) : boolean;
  385. var
  386. hs : string;
  387. t : tsystem;
  388. begin
  389. set_target_by_string:=false;
  390. { this should be case insensitive !! PM }
  391. hs:=upper(s);
  392. for t:=low(tsystem) to high(tsystem) do
  393. if assigned(targetinfos[t]) and
  394. (upper(targetinfos[t]^.shortname)=hs) then
  395. begin
  396. set_target_by_string:=set_target(t);
  397. exit;
  398. end;
  399. end;
  400. function set_target_asm_by_string(const s : string) : boolean;
  401. var
  402. hs : string;
  403. t : tasm;
  404. begin
  405. set_target_asm_by_string:=false;
  406. { this should be case insensitive !! PM }
  407. hs:=upper(s);
  408. for t:=low(tasm) to high(tasm) do
  409. if assigned(asminfos[t]) and
  410. (asminfos[t]^.idtxt=hs) then
  411. begin
  412. set_target_asm_by_string:=set_target_asm(t);
  413. exit;
  414. end;
  415. end;
  416. procedure UpdateAlignment(var d:talignmentinfo;const s:talignmentinfo);
  417. begin
  418. with d do
  419. begin
  420. { general update rules:
  421. minimum: if higher then update
  422. maximum: if lower then update or if undefined then update }
  423. if s.procalign>procalign then
  424. procalign:=s.procalign;
  425. if s.loopalign>loopalign then
  426. loopalign:=s.loopalign;
  427. if s.jumpalign>jumpalign then
  428. jumpalign:=s.jumpalign;
  429. if s.constalignmin>constalignmin then
  430. constalignmin:=s.constalignmin;
  431. if (constalignmax=0) or
  432. ((s.constalignmax>0) and (s.constalignmax<constalignmax)) then
  433. constalignmax:=s.constalignmax;
  434. if s.varalignmin>varalignmin then
  435. varalignmin:=s.varalignmin;
  436. if (varalignmax=0) or
  437. ((s.varalignmax>0) and (s.varalignmax<varalignmax)) then
  438. varalignmax:=s.varalignmax;
  439. if s.localalignmin>localalignmin then
  440. localalignmin:=s.localalignmin;
  441. if (localalignmax=0) or
  442. ((s.localalignmax>0) and (s.localalignmax<localalignmax)) then
  443. localalignmax:=s.localalignmax;
  444. if s.recordalignmin>recordalignmin then
  445. recordalignmin:=s.recordalignmin;
  446. if (recordalignmax=0) or
  447. ((s.recordalignmax>0) and (s.recordalignmax<recordalignmax)) then
  448. recordalignmax:=s.recordalignmax;
  449. if (maxCrecordalign=0) or
  450. ((s.maxCrecordalign>0) and (s.maxCrecordalign<maxCrecordalign)) then
  451. maxCrecordalign:=s.maxCrecordalign;
  452. end;
  453. end;
  454. {****************************************************************************
  455. Target registration
  456. ****************************************************************************}
  457. procedure RegisterTarget(const r:tsysteminfo);
  458. var
  459. t : tsystem;
  460. begin
  461. t:=r.system;
  462. if assigned(targetinfos[t]) then
  463. writeln('Warning: Target is already registered!')
  464. else
  465. Getmem(targetinfos[t],sizeof(tsysteminfo));
  466. targetinfos[t]^:=r;
  467. end;
  468. procedure RegisterRes(const r:tresinfo);
  469. var
  470. t : tres;
  471. begin
  472. t:=r.id;
  473. if assigned(resinfos[t]) then
  474. writeln('Warning: resourcecompiler is already registered!')
  475. else
  476. Getmem(resinfos[t],sizeof(tresinfo));
  477. resinfos[t]^:=r;
  478. end;
  479. procedure RegisterAr(const r:tarinfo);
  480. var
  481. t : tar;
  482. begin
  483. t:=r.id;
  484. if assigned(arinfos[t]) then
  485. writeln('Warning: ar is already registered!')
  486. else
  487. Getmem(arinfos[t],sizeof(tarinfo));
  488. arinfos[t]^:=r;
  489. end;
  490. procedure RegisterExternalLinker(var system_info: tsysteminfo; c:TAbstractLinkerClass);
  491. begin
  492. system_info.linkextern := c;
  493. end;
  494. procedure RegisterInternalLinker(var system_info : tsysteminfo; c:TAbstractLinkerClass);
  495. begin
  496. system_info.link := c;
  497. end;
  498. procedure DeregisterInfos;
  499. var
  500. assem : tasm;
  501. target : tsystem;
  502. ar : tar;
  503. res : tres;
  504. begin
  505. for target:=low(tsystem) to high(tsystem) do
  506. if assigned(targetinfos[target]) then
  507. begin
  508. freemem(targetinfos[target],sizeof(tsysteminfo));
  509. targetinfos[target]:=nil;
  510. end;
  511. for assem:=low(tasm) to high(tasm) do
  512. if assigned(asminfos[assem]) then
  513. begin
  514. freemem(asminfos[assem],sizeof(tasminfo));
  515. asminfos[assem]:=nil;
  516. end;
  517. for ar:=low(tar) to high(tar) do
  518. if assigned(arinfos[ar]) then
  519. begin
  520. freemem(arinfos[ar],sizeof(tarinfo));
  521. arinfos[ar]:=nil;
  522. end;
  523. for res:=low(tres) to high(tres) do
  524. if assigned(resinfos[res]) then
  525. begin
  526. freemem(resinfos[res],sizeof(tresinfo));
  527. resinfos[res]:=nil;
  528. end;
  529. end;
  530. {****************************************************************************
  531. Initialization of default target
  532. ****************************************************************************}
  533. procedure default_target(t:tsystem);
  534. begin
  535. set_target(t);
  536. if source_info.name='' then
  537. source_info:=target_info;
  538. end;
  539. procedure set_source_info(const ti : tsysteminfo);
  540. begin
  541. { can't use message() here (PFV) }
  542. if source_info.name<>'' then
  543. Writeln('Warning: Source OS Redefined!');
  544. source_info:=ti;
  545. end;
  546. procedure InitSystems;
  547. begin
  548. { Now default target, this is dependent on the target cpu define,
  549. when the define is the same as the source cpu then we use the source
  550. os, else we pick a default }
  551. {$ifdef i386}
  552. {$ifdef cpu86}
  553. default_target(source_info.system);
  554. {$else cpu86}
  555. {$ifdef linux}
  556. default_target(system_i386_linux);
  557. {$endif}
  558. {$ifdef freebsd}
  559. default_target(system_i386_freebsd);
  560. {$endif}
  561. {$endif cpu86}
  562. {$endif i386}
  563. {$ifdef x86_64}
  564. {$ifdef cpux86_64}
  565. default_target(source_info.system);
  566. {$else cpux86_64}
  567. {$ifdef linux}
  568. default_target(system_x86_64_linux);
  569. {$endif}
  570. {$ifdef freebsd}
  571. default_target(system_x86_64_freebsd);
  572. {$endif}
  573. {$endif cpux86_64}
  574. {$endif x86_64}
  575. {$ifdef m68k}
  576. {$ifdef cpu68}
  577. default_target(source_info.target);
  578. {$else cpu68}
  579. default_target(system_m68k_linux);
  580. {$endif cpu68}
  581. {$endif m68k}
  582. {$ifdef alpha}
  583. {$ifdef cpualpha}
  584. default_target(source_info.system);
  585. {$else cpualpha}
  586. default_target(system_alpha_linux);
  587. {$endif cpualpha}
  588. {$endif alpha}
  589. {$ifdef powerpc}
  590. {$ifdef cpupowerpc}
  591. default_target(source_info.system);
  592. {$else cpupowerpc}
  593. default_target(system_powerpc_linux);
  594. {$endif cpupowerpc}
  595. {$endif powerpc}
  596. {$ifdef sparc}
  597. {$ifdef cpusparc}
  598. default_target(source_info.system);
  599. {$else cpusparc}
  600. default_target(system_sparc_linux);
  601. {$endif cpusparc}
  602. {$endif sparc}
  603. {$ifdef arm}
  604. {$ifdef cpuarm}
  605. default_target(source_info.system);
  606. {$else cpuarm}
  607. default_target(system_arm_linux);
  608. {$endif cpuarm}
  609. {$endif arm}
  610. end;
  611. initialization
  612. source_info.name:='';
  613. finalization
  614. DeregisterInfos;
  615. end.
  616. {
  617. $Log$
  618. Revision 1.91 2004-06-29 21:00:08 peter
  619. * only enable dwarf for supported platforms
  620. Revision 1.90 2004/06/20 08:55:30 florian
  621. * logs truncated
  622. Revision 1.89 2004/06/16 20:07:10 florian
  623. * dwarf branch merged
  624. Revision 1.88 2004/05/20 21:54:33 florian
  625. + <pointer> - <pointer> result is divided by the pointer element size now
  626. this is delphi compatible as well as resulting in the expected result for p1+(p2-p1)
  627. Revision 1.87.2.6 2004/05/18 20:27:44 marco
  628. * initsystems fix
  629. Revision 1.87.2.5 2004/05/11 16:57:20 marco
  630. * freebsd target
  631. Revision 1.87.2.4 2004/05/10 21:28:34 peter
  632. * section_smartlink enabled for gas under linux
  633. }