i_darwin.pas 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. {
  2. Copyright (c) 1998-2008 by Peter Vreman
  3. This unit implements support information structures for Darwin
  4. (Mac OS X/OS X/macOS/iOS/iPhoneSimulator/...)
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 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 i_darwin;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. systems;
  23. const
  24. res_macho_info : tresinfo =
  25. (
  26. id : res_macho;
  27. resbin : 'fpcres';
  28. rescmd : '-o $OBJ -a $ARCH -s $SUBARCH -of mach-o $DBG';
  29. rcbin : 'windres';
  30. rccmd : '--include $INC -O res -D FPC -o $RES $RC';
  31. resourcefileclass : nil;
  32. resflags : [];
  33. );
  34. res_macosx_ext_info : tresinfo =
  35. (
  36. id : res_ext;
  37. resbin : 'fpcres';
  38. rescmd : '-o $OBJ -a $ENDIAN -of external $DBG';
  39. rcbin : 'windres';
  40. rccmd : '--include $INC -O res -D FPC -o $RES $RC';
  41. resourcefileclass : nil;
  42. resflags : [res_external_file,res_arch_in_file_name];
  43. );
  44. system_powerpc_darwin_info : tsysteminfo =
  45. (
  46. system : system_powerpc_darwin;
  47. name : 'Darwin for PowerPC';
  48. shortname : 'Darwin';
  49. flags : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,tf_pic_default,tf_has_winlike_resources,
  50. tf_supports_hidden_symbols];
  51. cpu : cpu_powerpc;
  52. unit_env : 'BSDUNITS';
  53. extradefines : 'UNIX;BSD;HASUNIX';
  54. exeext : '';
  55. defext : '.def';
  56. scriptext : '.sh';
  57. smartext : '.sl';
  58. unitext : '.ppu';
  59. unitlibext : '.ppl';
  60. asmext : '.s';
  61. objext : '.o';
  62. resext : '.res';
  63. resobjext : '.or';
  64. sharedlibext : '.dylib';
  65. staticlibext : '.a';
  66. staticlibprefix : 'libp';
  67. sharedlibprefix : 'lib';
  68. sharedClibext : '.dylib';
  69. staticClibext : '.a';
  70. staticClibprefix : 'lib';
  71. sharedClibprefix : 'lib';
  72. importlibprefix : 'libimp';
  73. importlibext : '.a';
  74. Cprefix : '_';
  75. newline : #10;
  76. dirsep : '/';
  77. assem : as_darwin;
  78. assemextern : as_darwin;
  79. link : ld_none;
  80. linkextern : ld_darwin;
  81. ar : ar_gnu_ar;
  82. res : res_macho;
  83. dbg : dbg_stabs;
  84. script : script_unix;
  85. endian : endian_big;
  86. alignment :
  87. (
  88. procalign : 16;
  89. loopalign : 4;
  90. jumpalign : 0;
  91. jumpalignskipmax : 0;
  92. coalescealign : 0;
  93. coalescealignskipmax: 0;
  94. constalignmin : 0;
  95. constalignmax : 4;
  96. varalignmin : 0;
  97. varalignmax : 4;
  98. localalignmin : 0;
  99. localalignmax : 4;
  100. recordalignmin : 0;
  101. recordalignmax : 4;
  102. maxCrecordalign : 4
  103. );
  104. first_parm_offset : 24;
  105. stacksize : 262144;
  106. stackalign : 16;
  107. abi : abi_powerpc_darwin;
  108. llvmdatalayout : 'E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v128:128:128-n32';
  109. );
  110. system_i386_darwin_info : tsysteminfo =
  111. (
  112. system : system_i386_darwin;
  113. name : 'Darwin for i386';
  114. shortname : 'Darwin';
  115. flags : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,tf_pic_uses_got,
  116. tf_pic_default,tf_has_winlike_resources,tf_use_hlcfi,tf_supports_symbolorderfile,tf_supports_hidden_symbols];
  117. cpu : cpu_i386;
  118. unit_env : 'BSDUNITS';
  119. extradefines : 'UNIX;BSD;HASUNIX';
  120. exeext : '';
  121. defext : '.def';
  122. scriptext : '.sh';
  123. smartext : '.sl';
  124. unitext : '.ppu';
  125. unitlibext : '.ppl';
  126. asmext : '.s';
  127. objext : '.o';
  128. resext : '.res';
  129. resobjext : '.or';
  130. sharedlibext : '.dylib';
  131. staticlibext : '.a';
  132. staticlibprefix : 'libp';
  133. sharedlibprefix : 'lib';
  134. sharedClibext : '.dylib';
  135. staticClibext : '.a';
  136. staticClibprefix : 'lib';
  137. sharedClibprefix : 'lib';
  138. importlibprefix : 'libimp';
  139. importlibext : '.a';
  140. Cprefix : '_';
  141. newline : #10;
  142. dirsep : '/';
  143. assem : as_clang_asdarwin;
  144. assemextern : as_clang_asdarwin;
  145. link : ld_none;
  146. linkextern : ld_darwin;
  147. ar : ar_gnu_ar;
  148. res : res_macho;
  149. dbg : dbg_dwarf2;
  150. script : script_unix;
  151. endian : endian_little;
  152. alignment :
  153. (
  154. procalign : 16;
  155. loopalign : 8;
  156. jumpalign : 16;
  157. jumpalignskipmax : 10;
  158. coalescealign : 0;
  159. coalescealignskipmax: 0;
  160. constalignmin : 0;
  161. constalignmax : 16;
  162. varalignmin : 0;
  163. varalignmax : 16;
  164. localalignmin : 0;
  165. localalignmax : 8;
  166. recordalignmin : 0;
  167. recordalignmax : 16;
  168. maxCrecordalign : 16
  169. );
  170. first_parm_offset : 8;
  171. stacksize : 262144;
  172. stackalign : 16;
  173. abi : abi_i386_dynalignedstack;
  174. llvmdatalayout : 'e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32-S128';
  175. );
  176. system_i386_iphonesim_info : tsysteminfo =
  177. (
  178. system : system_i386_iphonesim;
  179. name : 'Darwin/iPhoneSim for i386';
  180. shortname : 'iPhoneSim';
  181. flags : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,
  182. tf_pic_uses_got,tf_pic_default,tf_has_winlike_resources,tf_use_hlcfi,tf_supports_symbolorderfile,tf_supports_hidden_symbols,
  183. tf_requires_proper_alignment];
  184. cpu : cpu_i386;
  185. unit_env : 'BSDUNITS';
  186. extradefines : 'UNIX;BSD;HASUNIX;DARWIN'; // also define darwin for code compatibility
  187. exeext : '';
  188. defext : '.def';
  189. scriptext : '.sh';
  190. smartext : '.sl';
  191. unitext : '.ppu';
  192. unitlibext : '.ppl';
  193. asmext : '.s';
  194. objext : '.o';
  195. resext : '.res';
  196. resobjext : '.or';
  197. sharedlibext : '.dylib';
  198. staticlibext : '.a';
  199. staticlibprefix : 'libp';
  200. sharedlibprefix : 'lib';
  201. sharedClibext : '.dylib';
  202. staticClibext : '.a';
  203. staticClibprefix : 'lib';
  204. sharedClibprefix : 'lib';
  205. importlibprefix : 'libimp';
  206. importlibext : '.a';
  207. Cprefix : '_';
  208. newline : #10;
  209. dirsep : '/';
  210. assem : as_clang_asdarwin;
  211. assemextern : as_clang_asdarwin;
  212. link : ld_none;
  213. linkextern : ld_darwin;
  214. ar : ar_gnu_ar;
  215. res : res_macho;
  216. dbg : dbg_dwarf2;
  217. script : script_unix;
  218. endian : endian_little;
  219. alignment :
  220. (
  221. procalign : 16;
  222. loopalign : 8;
  223. jumpalign : 16;
  224. jumpalignskipmax : 10;
  225. coalescealign : 0;
  226. coalescealignskipmax: 0;
  227. constalignmin : 0;
  228. constalignmax : 16;
  229. varalignmin : 0;
  230. varalignmax : 16;
  231. localalignmin : 0;
  232. localalignmax : 16;
  233. recordalignmin : 0;
  234. recordalignmax : 16;
  235. maxCrecordalign : 16
  236. );
  237. first_parm_offset : 8;
  238. stacksize : 262144;
  239. stackalign : 16;
  240. abi : abi_i386_dynalignedstack;
  241. llvmdatalayout : 'e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32-S128';
  242. );
  243. system_powerpc64_darwin_info : tsysteminfo =
  244. (
  245. system : system_powerpc64_darwin;
  246. name : 'Darwin for PowerPC64';
  247. shortname : 'Darwin';
  248. flags : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,
  249. tf_pic_default,tf_has_winlike_resources,tf_supports_hidden_symbols];
  250. cpu : cpu_powerpc64;
  251. unit_env : 'BSDUNITS';
  252. extradefines : 'UNIX;BSD;HASUNIX';
  253. exeext : '';
  254. defext : '.def';
  255. scriptext : '.sh';
  256. smartext : '.sl';
  257. unitext : '.ppu';
  258. unitlibext : '.ppl';
  259. asmext : '.s';
  260. objext : '.o';
  261. resext : '.res';
  262. resobjext : '.or';
  263. sharedlibext : '.dylib';
  264. staticlibext : '.a';
  265. staticlibprefix : 'libp';
  266. sharedlibprefix : 'lib';
  267. sharedClibext : '.dylib';
  268. staticClibext : '.a';
  269. staticClibprefix : 'lib';
  270. sharedClibprefix : 'lib';
  271. importlibprefix : 'libimp';
  272. importlibext : '.a';
  273. Cprefix : '_';
  274. newline : #10;
  275. dirsep : '/';
  276. assem : as_darwin;
  277. assemextern : as_darwin;
  278. link : ld_none;
  279. linkextern : ld_darwin;
  280. ar : ar_gnu_ar;
  281. res : res_macho;
  282. dbg : dbg_dwarf2;
  283. script : script_unix;
  284. endian : endian_big;
  285. alignment :
  286. (
  287. procalign : 16;
  288. loopalign : 4;
  289. jumpalign : 0;
  290. jumpalignskipmax : 0;
  291. coalescealign : 0;
  292. coalescealignskipmax: 0;
  293. constalignmin : 4;
  294. constalignmax : 8;
  295. varalignmin : 4;
  296. varalignmax : 8;
  297. localalignmin : 4;
  298. localalignmax : 8;
  299. recordalignmin : 0;
  300. recordalignmax : 8;
  301. maxCrecordalign : 4
  302. );
  303. first_parm_offset : 48;
  304. stacksize : 262144;
  305. stackalign : 16;
  306. abi : abi_powerpc_darwin;
  307. llvmdatalayout : 'E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64';
  308. );
  309. system_x86_64_darwin_info : tsysteminfo =
  310. (
  311. system : system_x86_64_darwin;
  312. name : 'Darwin for x86_64';
  313. shortname : 'Darwin';
  314. flags : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,tf_pic_default,tf_has_winlike_resources,tf_use_hlcfi
  315. {$ifdef llvm},tf_use_psabieh{$endif},tf_supports_symbolorderfile,tf_supports_hidden_symbols];
  316. cpu : cpu_x86_64;
  317. unit_env : 'BSDUNITS';
  318. extradefines : 'UNIX;BSD;HASUNIX';
  319. exeext : '';
  320. defext : '.def';
  321. scriptext : '.sh';
  322. smartext : '.sl';
  323. unitext : '.ppu';
  324. unitlibext : '.ppl';
  325. asmext : '.s';
  326. objext : '.o';
  327. resext : '.res';
  328. resobjext : '.or';
  329. sharedlibext : '.dylib';
  330. staticlibext : '.a';
  331. staticlibprefix : 'libp';
  332. sharedlibprefix : 'lib';
  333. sharedClibext : '.dylib';
  334. staticClibext : '.a';
  335. staticClibprefix : 'lib';
  336. sharedClibprefix : 'lib';
  337. importlibprefix : 'libimp';
  338. importlibext : '.a';
  339. Cprefix : '_';
  340. newline : #10;
  341. dirsep : '/';
  342. assem : as_clang_asdarwin;
  343. assemextern : as_clang_asdarwin;
  344. link : ld_none;
  345. linkextern : ld_darwin;
  346. ar : ar_gnu_ar;
  347. res : res_macho;
  348. dbg : dbg_dwarf2;
  349. script : script_unix;
  350. endian : endian_little;
  351. alignment :
  352. (
  353. procalign : 16;
  354. loopalign : 8;
  355. jumpalign : 16;
  356. jumpalignskipmax : 10;
  357. coalescealign : 0;
  358. coalescealignskipmax: 0;
  359. constalignmin : 0;
  360. constalignmax : 16;
  361. varalignmin : 0;
  362. varalignmax : 16;
  363. localalignmin : 4;
  364. localalignmax : 16;
  365. recordalignmin : 0;
  366. recordalignmax : 16;
  367. maxCrecordalign : 16
  368. );
  369. first_parm_offset : 16;
  370. stacksize : 262144;
  371. stackalign : 16;
  372. abi : abi_default;
  373. llvmdatalayout : 'e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128';
  374. );
  375. system_x86_64_iphonesim_info : tsysteminfo =
  376. (
  377. system : system_x86_64_iphonesim;
  378. name : 'Darwin/iPhoneSim for x86_64';
  379. shortname : 'iPhoneSim';
  380. flags : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,
  381. tf_pic_default,tf_has_winlike_resources,tf_use_hlcfi,tf_supports_symbolorderfile,tf_supports_hidden_symbols,
  382. tf_requires_proper_alignment];
  383. cpu : cpu_x86_64;
  384. unit_env : 'BSDUNITS';
  385. extradefines : 'UNIX;BSD;HASUNIX;DARWIN'; // also define darwin for code compatibility
  386. exeext : '';
  387. defext : '.def';
  388. scriptext : '.sh';
  389. smartext : '.sl';
  390. unitext : '.ppu';
  391. unitlibext : '.ppl';
  392. asmext : '.s';
  393. objext : '.o';
  394. resext : '.res';
  395. resobjext : '.or';
  396. sharedlibext : '.dylib';
  397. staticlibext : '.a';
  398. staticlibprefix : 'libp';
  399. sharedlibprefix : 'lib';
  400. sharedClibext : '.dylib';
  401. staticClibext : '.a';
  402. staticClibprefix : 'lib';
  403. sharedClibprefix : 'lib';
  404. importlibprefix : 'libimp';
  405. importlibext : '.a';
  406. Cprefix : '_';
  407. newline : #10;
  408. dirsep : '/';
  409. assem : as_clang_asdarwin;
  410. assemextern : as_clang_asdarwin;
  411. link : ld_none;
  412. linkextern : ld_darwin;
  413. ar : ar_gnu_ar;
  414. res : res_macho;
  415. dbg : dbg_dwarf2;
  416. script : script_unix;
  417. endian : endian_little;
  418. alignment :
  419. (
  420. procalign : 16;
  421. loopalign : 8;
  422. jumpalign : 16;
  423. jumpalignskipmax : 10;
  424. coalescealign : 0;
  425. coalescealignskipmax: 0;
  426. constalignmin : 0;
  427. constalignmax : 16;
  428. varalignmin : 0;
  429. varalignmax : 16;
  430. localalignmin : 4;
  431. localalignmax : 16;
  432. recordalignmin : 0;
  433. recordalignmax : 16;
  434. maxCrecordalign : 16
  435. );
  436. first_parm_offset : 16;
  437. stacksize : 262144;
  438. stackalign : 16;
  439. abi : abi_default;
  440. llvmdatalayout : 'e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128';
  441. );
  442. system_arm_ios_info : tsysteminfo =
  443. (
  444. system : system_arm_ios;
  445. name : 'iOS for ARM';
  446. shortname : 'iOS';
  447. flags : [tf_p_ext_support,tf_requires_proper_alignment,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,
  448. tf_dwarf_only_local_labels,tf_has_winlike_resources,tf_pic_default,tf_supports_symbolorderfile,tf_supports_hidden_symbols];
  449. cpu : cpu_arm;
  450. unit_env : 'BSDUNITS';
  451. extradefines : 'UNIX;BSD;HASUNIX;CPUARMEL;DARWIN';
  452. exeext : '';
  453. defext : '.def';
  454. scriptext : '.sh';
  455. smartext : '.sl';
  456. unitext : '.ppu';
  457. unitlibext : '.ppl';
  458. asmext : '.s';
  459. objext : '.o';
  460. resext : '.res';
  461. resobjext : '.or';
  462. sharedlibext : '.dylib';
  463. staticlibext : '.a';
  464. staticlibprefix : 'libp';
  465. sharedlibprefix : 'lib';
  466. sharedClibext : '.dylib';
  467. staticClibext : '.a';
  468. staticClibprefix : 'lib';
  469. sharedClibprefix : 'lib';
  470. importlibprefix : 'libimp';
  471. importlibext : '.a';
  472. Cprefix : '_';
  473. newline : #10;
  474. dirsep : '/';
  475. assem : as_clang_asdarwin;
  476. assemextern : as_clang_asdarwin;
  477. link : ld_none;
  478. linkextern : ld_darwin;
  479. ar : ar_gnu_ar;
  480. res : res_macho;
  481. dbg : dbg_dwarf2;
  482. script : script_unix;
  483. endian : endian_little;
  484. alignment :
  485. (
  486. procalign : 16;
  487. loopalign : 4;
  488. jumpalign : 0;
  489. jumpalignskipmax : 0;
  490. coalescealign : 0;
  491. coalescealignskipmax: 0;
  492. constalignmin : 0;
  493. constalignmax : 8;
  494. varalignmin : 0;
  495. varalignmax : 8;
  496. localalignmin : 4;
  497. localalignmax : 8;
  498. recordalignmin : 0;
  499. recordalignmax : 8;
  500. maxCrecordalign : 8
  501. );
  502. first_parm_offset : 8;
  503. stacksize : 262144;
  504. stackalign : 4;
  505. abi : abi_default;
  506. { note: default LLVM stack alignment is 8 bytes for this target }
  507. llvmdatalayout : 'e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32-S32';
  508. );
  509. system_aarch64_ios_info : tsysteminfo =
  510. (
  511. system : system_aarch64_ios;
  512. name : 'iOS for AArch64';
  513. shortname : 'iOS';
  514. flags : [tf_p_ext_support,tf_requires_proper_alignment,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,
  515. tf_dwarf_only_local_labels,tf_pic_default,tf_has_winlike_resources,tf_supports_symbolorderfile,tf_supports_hidden_symbols];
  516. cpu : cpu_aarch64;
  517. unit_env : 'BSDUNITS';
  518. extradefines : 'UNIX;BSD;HASUNIX;DARWIN';
  519. exeext : '';
  520. defext : '.def';
  521. scriptext : '.sh';
  522. smartext : '.sl';
  523. unitext : '.ppu';
  524. unitlibext : '.ppl';
  525. asmext : '.s';
  526. objext : '.o';
  527. resext : '.res';
  528. resobjext : '.or';
  529. sharedlibext : '.dylib';
  530. staticlibext : '.a';
  531. staticlibprefix : 'libp';
  532. sharedlibprefix : 'lib';
  533. sharedClibext : '.dylib';
  534. staticClibext : '.a';
  535. staticClibprefix : 'lib';
  536. sharedClibprefix : 'lib';
  537. importlibprefix : 'libimp';
  538. importlibext : '.a';
  539. Cprefix : '_';
  540. newline : #10;
  541. dirsep : '/';
  542. assem : as_clang_asdarwin;
  543. assemextern : as_clang_asdarwin;
  544. link : ld_none;
  545. linkextern : ld_darwin;
  546. ar : ar_gnu_ar;
  547. res : res_macho;
  548. dbg : dbg_dwarf2;
  549. script : script_unix;
  550. endian : endian_little;
  551. alignment :
  552. (
  553. procalign : 16;
  554. loopalign : 4;
  555. jumpalign : 0;
  556. jumpalignskipmax : 0;
  557. coalescealign : 0;
  558. coalescealignskipmax: 0;
  559. constalignmin : 0;
  560. constalignmax : 16;
  561. varalignmin : 0;
  562. varalignmax : 16;
  563. localalignmin : 4;
  564. localalignmax : 16;
  565. recordalignmin : 0;
  566. recordalignmax : 16;
  567. maxCrecordalign : 16
  568. );
  569. first_parm_offset : 16;
  570. stacksize : 8*1024*1024;
  571. stackalign : 16;
  572. abi : abi_aarch64_darwin;
  573. llvmdatalayout : 'e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n32:64-S128'
  574. );
  575. system_aarch64_darwin_info : tsysteminfo =
  576. (
  577. system : system_aarch64_darwin;
  578. name : 'Darwin for AArch64';
  579. shortname : 'Darwin';
  580. flags : [tf_p_ext_support,tf_requires_proper_alignment,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,
  581. tf_dwarf_only_local_labels,tf_pic_default,tf_has_winlike_resources,tf_supports_symbolorderfile,tf_supports_hidden_symbols
  582. {$ifdef llvm},tf_use_psabieh{$endif}];
  583. cpu : cpu_aarch64;
  584. unit_env : 'BSDUNITS';
  585. extradefines : 'UNIX;BSD;HASUNIX';
  586. exeext : '';
  587. defext : '.def';
  588. scriptext : '.sh';
  589. smartext : '.sl';
  590. unitext : '.ppu';
  591. unitlibext : '.ppl';
  592. asmext : '.s';
  593. objext : '.o';
  594. resext : '.res';
  595. resobjext : '.or';
  596. sharedlibext : '.dylib';
  597. staticlibext : '.a';
  598. staticlibprefix : 'libp';
  599. sharedlibprefix : 'lib';
  600. sharedClibext : '.dylib';
  601. staticClibext : '.a';
  602. staticClibprefix : 'lib';
  603. sharedClibprefix : 'lib';
  604. importlibprefix : 'libimp';
  605. importlibext : '.a';
  606. Cprefix : '_';
  607. newline : #10;
  608. dirsep : '/';
  609. assem : as_clang_asdarwin;
  610. assemextern : as_clang_asdarwin;
  611. link : ld_none;
  612. linkextern : ld_darwin;
  613. ar : ar_gnu_ar;
  614. res : res_macho;
  615. dbg : dbg_dwarf2;
  616. script : script_unix;
  617. endian : endian_little;
  618. alignment :
  619. (
  620. procalign : 16;
  621. loopalign : 4;
  622. jumpalign : 0;
  623. jumpalignskipmax : 0;
  624. coalescealign : 0;
  625. coalescealignskipmax: 0;
  626. constalignmin : 0;
  627. constalignmax : 16;
  628. varalignmin : 0;
  629. varalignmax : 16;
  630. localalignmin : 4;
  631. localalignmax : 16;
  632. recordalignmin : 0;
  633. recordalignmax : 16;
  634. maxCrecordalign : 16
  635. );
  636. first_parm_offset : 16;
  637. stacksize : 8*1024*1024;
  638. stackalign : 16;
  639. abi : abi_aarch64_darwin;
  640. llvmdatalayout : 'e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n32:64-S128'
  641. );
  642. implementation
  643. initialization
  644. {$ifdef cpui386}
  645. {$ifdef Darwin}
  646. set_source_info(system_i386_Darwin_info);
  647. {$endif Darwin}
  648. {$endif cpui386}
  649. {$ifdef cpux86_64}
  650. {$ifdef Darwin}
  651. set_source_info(system_x86_64_darwin_info);
  652. {$endif}
  653. {$endif cpux86_64}
  654. {$ifdef cpupowerpc32}
  655. {$ifdef Darwin}
  656. set_source_info(system_powerpc_darwin_info);
  657. {$endif Darwin}
  658. {$endif cpupowerpc32}
  659. {$ifdef cpupowerpc64}
  660. {$ifdef Darwin}
  661. set_source_info(system_powerpc64_darwin_info);
  662. {$endif Darwin}
  663. {$endif powerpc64}
  664. {$ifdef cpuarm}
  665. {$ifdef Darwin}
  666. set_source_info(system_arm_ios_info);
  667. {$endif Darwin}
  668. {$endif cpuarm}
  669. {$ifdef cpuaarch64}
  670. {$ifdef Darwin}
  671. {$ifdef ios}
  672. set_source_info(system_aarch64_ios_info);
  673. {$else}
  674. set_source_info(system_aarch64_darwin_info);
  675. {$endif}
  676. {$endif Darwin}
  677. {$endif cpuaarch64}
  678. end.