systems.inc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. {
  2. Copyright (c) 1998-2008 by Florian Klaempfl
  3. This include contains the enumeration
  4. 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 2 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. type
  20. tendian = (endian_little,endian_big);
  21. (*
  22. IMPORTANT NOTE:
  23. The value of this enumeration is stored in PPU files.
  24. Therefore adding new CPU targets should not change the
  25. values of the pre-existing targets. (CEC)
  26. FURTHERMORE : Make sure that this branch values, are
  27. consistent with the main branch version always.
  28. *)
  29. tsystemcpu=
  30. (
  31. cpu_no, { 0 }
  32. cpu_i386, { 1 }
  33. cpu_m68k, { 2 }
  34. obsolete_cpu_alpha, { 3 }
  35. cpu_powerpc, { 4 }
  36. cpu_sparc, { 5 }
  37. obsolete_cpu_vm, { 6 }
  38. obsolete_cpu_ia64, { 7 }
  39. cpu_x86_64, { 8 }
  40. cpu_mipseb, { 9 }
  41. cpu_arm, { 10 }
  42. cpu_powerpc64, { 11 }
  43. cpu_avr, { 12 }
  44. cpu_mipsel, { 13 }
  45. cpu_jvm, { 14 }
  46. cpu_i8086, { 15 }
  47. cpu_aarch64, { 16 }
  48. cpu_wasm32, { 17 }
  49. cpu_sparc64, { 18 }
  50. cpu_riscv32, { 19 }
  51. cpu_riscv64, { 20 }
  52. cpu_xtensa, { 21 }
  53. cpu_z80, { 22 }
  54. cpu_mips64, { 23 }
  55. cpu_mips64el, { 24 }
  56. cpu_loongarch64 { 25 }
  57. );
  58. tasmmode= (asmmode_none
  59. { standard assembler (cpu dependant) with full parsing }
  60. ,asmmode_standard
  61. ,asmmode_i386_att
  62. ,asmmode_i386_intel
  63. ,asmmode_ppc_gas
  64. ,asmmode_ppc_motorola
  65. ,asmmode_arm_gas
  66. ,asmmode_sparc_gas
  67. ,asmmode_x86_64_gas
  68. ,asmmode_m68k_mot
  69. ,asmmode_x86_64_intel
  70. ,asmmode_x86_64_att
  71. ,asmmode_avr_gas
  72. ,asmmode_i8086_intel
  73. ,asmmode_i8086_att
  74. ,asmmode_arm_gas_unified
  75. ,asmmode_xtensa_gas
  76. );
  77. (* IMPORTANT NOTE:
  78. the integer value of this enum is stored in PPU
  79. files to recognize the target, so if you add new targets
  80. always add them at end PM
  81. FURTHERMORE : Make sure that this branch values are
  82. consistent with the main branch version always. (CEC)
  83. *)
  84. type
  85. tsystem =
  86. (
  87. system_none, { 0 }
  88. obsolete_system_i386_GO32V1,{ 1 }
  89. system_i386_GO32V2, { 2 }
  90. system_i386_linux, { 3 }
  91. system_i386_OS2, { 4 }
  92. system_i386_Win32, { 5 }
  93. system_i386_freebsd, { 6 }
  94. system_m68k_Amiga, { 7 }
  95. system_m68k_Atari, { 8 }
  96. system_m68k_macosclassic, { 9 }
  97. system_m68k_linux, { 10 }
  98. system_m68k_PalmOS, { 11 }
  99. obsolete_system_alpha_linux,{ 12 }
  100. system_powerpc_linux, { 13 }
  101. system_powerpc_macosclassic,{ 14 }
  102. system_i386_solaris, { 15 }
  103. system_i386_beos, { 16 }
  104. system_i386_netbsd, { 17 }
  105. system_m68k_netbsd, { 18 }
  106. system_i386_Netware, { 19 }
  107. obsolete_system_i386_qnx, { 20 }
  108. system_i386_wdosx, { 21 }
  109. system_sparc_solaris, { 22 }
  110. system_sparc_linux, { 23 }
  111. system_i386_openbsd, { 24 }
  112. obsolete_system_m68k_openbsd,{ 25 }
  113. system_x86_64_linux, { 26 }
  114. system_powerpc_darwin, { 27 }
  115. system_i386_EMX, { 28 }
  116. system_powerpc_netbsd, { 29 }
  117. system_powerpc_openbsd, { 30 }
  118. system_arm_linux, { 31 }
  119. system_i386_watcom, { 32 }
  120. system_powerpc_MorphOS, { 33 }
  121. system_x86_64_freebsd, { 34 }
  122. system_i386_netwlibc, { 35 }
  123. system_powerpc_Amiga, { 36 }
  124. system_x86_64_win64, { 37 }
  125. system_arm_wince, { 38 }
  126. obsolete_system_ia64_win64,{ 39 }
  127. system_i386_wince, { 40 }
  128. system_x86_6432_linux, { 41 }
  129. system_arm_gba, { 42 }
  130. system_powerpc64_linux, { 43 }
  131. system_i386_darwin, { 44 }
  132. system_arm_palmos, { 45 }
  133. system_powerpc64_darwin, { 46 }
  134. system_arm_nds, { 47 }
  135. system_i386_embedded, { 48 }
  136. system_m68k_embedded, { 49 }
  137. obsolete_system_alpha_embedded,{ 50 }
  138. system_powerpc_embedded, { 51 }
  139. system_sparc_embedded, { 52 }
  140. obsolete_system_vm_embedded,{ 53 }
  141. obsolete_system_ia64_embedded,{ 54 }
  142. system_x86_64_embedded, { 55 }
  143. obsolete_system_mips_embedded, { 56 } { duplicate of system_mipseb_embedded, 81 }
  144. system_arm_embedded, { 57 }
  145. system_powerpc64_embedded, { 58 }
  146. system_i386_symbian, { 59 }
  147. system_arm_symbian, { 60 }
  148. system_x86_64_darwin, { 61 }
  149. system_avr_embedded, { 62 }
  150. system_i386_haiku, { 63 }
  151. system_arm_ios, { 64 }
  152. system_x86_64_solaris, { 65 }
  153. system_mipseb_linux, { 66 }
  154. system_mipsel_linux, { 67 }
  155. system_i386_nativent, { 68 }
  156. system_i386_iphonesim, { 69 }
  157. system_powerpc_wii, { 70 }
  158. system_x86_64_openbsd, { 71 }
  159. system_x86_64_netbsd, { 72 }
  160. system_powerpc_aix, { 73 }
  161. system_powerpc64_aix, { 74 }
  162. system_jvm_java32, { 75 }
  163. system_jvm_android32, { 76 }
  164. system_arm_android, { 77 }
  165. system_i386_android, { 78 }
  166. system_i8086_msdos, { 79 }
  167. system_mipsel_android, { 80 }
  168. system_mipseb_embedded, { 81 }
  169. system_mipsel_embedded, { 82 }
  170. system_i386_aros, { 83 }
  171. system_x86_64_aros, { 84 }
  172. system_x86_64_dragonfly, { 85 }
  173. system_aarch64_ios, { 86 }
  174. system_x86_64_iphonesim, { 87 }
  175. system_aarch64_linux, { 88 }
  176. system_i8086_win16, { 89 }
  177. system_i8086_embedded, { 90 }
  178. system_arm_aros, { 91 }
  179. system_wasm32_embedded, { 92 }
  180. system_sparc64_linux, { 93 }
  181. system_sparc64_solaris, { 94 }
  182. system_arm_netbsd, { 95 }
  183. system_riscv32_linux, { 96 }
  184. system_riscv64_linux, { 97 }
  185. system_riscv64_embedded, { 98 }
  186. system_riscv32_embedded, { 99 }
  187. system_aarch64_android, { 100 }
  188. system_x86_64_android, { 101 }
  189. system_x86_64_haiku, { 102 }
  190. system_xtensa_embedded, { 103 }
  191. system_xtensa_freertos, { 104 }
  192. system_xtensa_linux, { 105 }
  193. system_arm_freertos, { 106 }
  194. system_aarch64_win64, { 107 }
  195. system_z80_embedded, { 108 }
  196. system_z80_zxspectrum, { 109 }
  197. system_z80_msxdos, { 110 }
  198. system_aarch64_darwin, { 111 }
  199. system_z80_amstradcpc, { 112 }
  200. system_m68k_sinclairql, { 113 }
  201. system_wasm32_wasip1, { 114 }
  202. system_aarch64_freebsd, { 115 }
  203. system_aarch64_embedded, { 116 }
  204. system_mips64_linux, { 117 }
  205. system_mips64el_linux, { 118 }
  206. system_riscv32_freertos, { 119 }
  207. system_loongarch64_linux, { 120 }
  208. system_aarch64_iphonesim, { 121 }
  209. system_m68k_human68k, { 122 }
  210. system_mipsel_ps1, { 123 }
  211. system_wasm32_wasip1threads,{ 124 }
  212. system_wasm32_wasip2, { 125 }
  213. system_powerpc64_freebsd { 126 }
  214. );
  215. type
  216. tasm = (as_none
  217. ,as_default
  218. ,as_gas { standard gnu assembler }
  219. ,as_i386_as_aout
  220. ,as_i386_nasmcoff
  221. ,as_i386_nasmwin32
  222. ,as_i386_nasmwdosx
  223. ,as_i386_nasmelf
  224. ,as_i386_nasmobj
  225. ,as_i386_nasmbeos
  226. ,as_i386_tasm
  227. ,as_i386_masm
  228. ,as_i386_wasm
  229. ,as_i386_coff
  230. ,as_i386_pecoff
  231. ,as_i386_elf32
  232. ,as_i386_pecoffwdosx
  233. ,as_m68k_mit
  234. ,as_powerpc_mpw
  235. ,as_darwin
  236. ,as_i386_macho
  237. ,as_x86_64_masm
  238. ,as_x86_64_pecoff
  239. ,as_i386_pecoffwince
  240. ,as_arm_pecoffwince
  241. ,as_x86_64_elf64
  242. ,as_sparc_elf32
  243. ,as_ggas { gnu assembler called "gas" instead of "as" }
  244. ,as_i386_nasmhaiku
  245. ,as_powerpc_vasm
  246. ,as_i386_nlmcoff
  247. ,as_powerpc_xcoff
  248. ,as_jvm_jasmin
  249. ,as_yasm
  250. ,as_i386_nasm
  251. ,as_i386_nasmdarwin
  252. ,as_x86_64_nasm
  253. ,as_x86_64_nasmwin64
  254. ,as_x86_64_nasmelf
  255. ,as_x86_64_nasmdarwin
  256. ,as_i8086_nasm
  257. ,as_i8086_nasmobj
  258. ,as_gas_powerpc_xcoff
  259. ,as_powerpc_gas_macosclassic
  260. ,as_arm_elf32
  261. ,as_i8086_omf
  262. ,as_clang_asdarwin { machine code assembler in Darwin as style assembled by clang }
  263. ,as_solaris_as
  264. ,as_m68k_vasm
  265. ,as_m68k_as_aout
  266. ,as_wasm32_binaryen
  267. ,as_powerpc_gas_legacy { for systems with very old GAS versions only, which don't support eg. named sections }
  268. ,as_clang_llvm
  269. ,as_clang_gas { machine code assembler in gas style assembled by clang }
  270. ,as_z80asm
  271. ,as_sdcc_sdasz80
  272. ,as_z80_vasm
  273. ,as_z80_rel
  274. ,as_wasm32_wabt
  275. ,as_wasm32_wasa
  276. ,as_wasm32_llvm_mc_v10 { WebAssembly code assembled by llvm-mc (llvm machine code playground) from LLVM 10 }
  277. ,as_wasm32_llvm_mc_v11 { WebAssembly code assembled by llvm-mc (llvm machine code playground) from LLVM 11 }
  278. ,as_wasm32_llvm_mc_v12 { WebAssembly code assembled by llvm-mc (llvm machine code playground) from LLVM 12 }
  279. ,as_wasm32_llvm_mc_v13 { WebAssembly code assembled by llvm-mc (llvm machine code playground) from LLVM 13 }
  280. ,as_wasm32_llvm_mc_v14 { WebAssembly code assembled by llvm-mc (llvm machine code playground) from LLVM 14 }
  281. ,as_wasm32_llvm_mc_v15 { WebAssembly code assembled by llvm-mc (llvm machine code playground) from LLVM 15 }
  282. ,as_wasm32_llvm_mc_v16 { WebAssembly code assembled by llvm-mc (llvm machine code playground) from LLVM 16 }
  283. ,as_wasm32_llvm_mc_v17 { WebAssembly code assembled by llvm-mc (llvm machine code playground) from LLVM 17 }
  284. ,as_wasm32_llvm_mc { WebAssembly code assembled by llvm-mc (llvm machine code playground) from the latest stable LLVM version (18 or later) }
  285. ,as_arm_vasm
  286. ,as_wasm32_wasm
  287. ,as_clang_llvm_darwin
  288. ,as_m68k_elf32
  289. ,as_win64_gas
  290. );
  291. tlink = (ld_none,
  292. ld_aix, { external linkers (one per OS, handles all CPUs) }
  293. ld_amiga,
  294. ld_aros,
  295. ld_atari,
  296. ld_android,
  297. ld_beos,
  298. ld_bsd,
  299. ld_darwin,
  300. ld_embedded,
  301. ld_emx,
  302. ld_gba,
  303. ld_go32v2,
  304. ld_haiku,
  305. ld_jvm,
  306. ld_linux,
  307. ld_morphos,
  308. ld_mpw,
  309. ld_msdos,
  310. ld_nds,
  311. ld_netwlibc,
  312. ld_netware,
  313. ld_os2,
  314. ld_palmos,
  315. ld_solaris,
  316. ld_watcom,
  317. ld_wdosx,
  318. ld_wii,
  319. ld_windows,
  320. ld_win16,
  321. ld_int_go32v2, { implemented internal linkers }
  322. ld_int_linux,
  323. ld_int_nativent,
  324. ld_int_netware,
  325. ld_int_windows,
  326. ld_int_msdos,
  327. ld_int_win16,
  328. ld_int_zxspectrum,
  329. ld_int_msxdos,
  330. ld_int_wasi,
  331. ld_freertos,
  332. ld_zxspectrum,
  333. ld_msxdos,
  334. ld_amstradcpc,
  335. ld_sinclairql,
  336. ld_wasi,
  337. ld_human68k,
  338. ld_ps1
  339. );
  340. tar = (ar_none
  341. ,ar_gnu_ar
  342. ,ar_mpw_ar
  343. ,ar_gnu_ar_scripted
  344. ,ar_gnu_gar
  345. ,ar_watcom_wlib_omf
  346. ,ar_watcom_wlib_omf_scripted
  347. ,ar_sdcc_sdar
  348. ,ar_sdcc_sdar_scripted
  349. );
  350. tres = (res_none
  351. ,res_gnu_windres,res_watcom_wrc_os2
  352. ,res_m68k_palmos,res_m68k_mpw
  353. ,res_powerpc_mpw,res_elf,res_xcoff
  354. ,res_win64_gorc, res_macho, res_ext
  355. ,res_jvm_raw,res_wasm
  356. );
  357. tresinfoflags = (res_external_file,res_arch_in_file_name
  358. ,res_single_file,res_no_compile);
  359. tdbg = (dbg_none
  360. ,dbg_stabs,dbg_stabx,dbg_dwarf2,dbg_dwarf3,dbg_dwarf4,dbg_jasmin
  361. ,dbg_codeview,dbg_llvm
  362. );
  363. tscripttype = (script_none
  364. ,script_dos,script_unix,script_amiga,
  365. script_mpw,
  366. script_fpcres
  367. );
  368. tabi = (abi_default
  369. ,abi_powerpc_sysv,abi_powerpc_aix,abi_powerpc_darwin,abi_powerpc_elfv2
  370. ,abi_eabi,abi_armeb,abi_eabihf
  371. ,abi_old_win32_gnu
  372. ,abi_aarch64_darwin
  373. ,abi_riscv_ilp32
  374. ,abi_riscv_ilp32f
  375. ,abi_riscv_ilp32d
  376. ,abi_riscv_ilp32e
  377. ,abi_riscv_lp64
  378. ,abi_riscv_lp64f
  379. ,abi_riscv_lp64d
  380. ,abi_riscv_lp64q
  381. { stack is aligned and all room for parameters is reserved on
  382. entry, but depending on the calling convention, the parameters
  383. may still be removed by the callee (and then the stack needs to
  384. be restored by the caller) }
  385. ,abi_i386_dynalignedstack
  386. ,abi_xtensa_windowed
  387. ,abi_xtensa_call0
  388. ,abi_mips_o32
  389. ,abi_mips_n32
  390. ,abi_mips_o64
  391. ,abi_mips_n64
  392. ,abi_loongarch_lp64s
  393. ,abi_loongarch_lp64f
  394. ,abi_loongarch_lp64d
  395. ,abi_loongarch_lp32s
  396. ,abi_loongarch_lp32f
  397. ,abi_loongarch_lp32d
  398. );
  399. tcgbackend = (
  400. { default FPC code generator }
  401. cg_fpc
  402. { LLVM code generator }
  403. , cg_llvm
  404. );
  405. const
  406. abi_powerpc_elfv1 = abi_powerpc_sysv;