systems.inc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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. consistant 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_wasm, { 17 }
  49. cpu_sparc64 { 18 }
  50. );
  51. tasmmode= (asmmode_none
  52. { standard assembler (cpu dependant) with full parsing }
  53. ,asmmode_standard
  54. ,asmmode_i386_att
  55. ,asmmode_i386_intel
  56. ,asmmode_ppc_gas
  57. ,asmmode_ppc_motorola
  58. ,asmmode_arm_gas
  59. ,asmmode_sparc_gas
  60. ,asmmode_x86_64_gas
  61. ,asmmode_m68k_mot
  62. ,asmmode_x86_64_intel
  63. ,asmmode_x86_64_att
  64. ,asmmode_avr_gas
  65. ,asmmode_i8086_intel
  66. ,asmmode_i8086_att
  67. ,asmmode_arm_gas_unified
  68. );
  69. (* IMPORTANT NOTE:
  70. the integer value of this enum is stored in PPU
  71. files to recognize the target, so if you add new targets
  72. allways add them at end PM
  73. FURTHERMORE : Make sure that this branch values are
  74. consistant with the main branch version always. (CEC)
  75. *)
  76. type
  77. tsystem =
  78. (
  79. system_none, { 0 }
  80. obsolete_system_i386_GO32V1,{ 1 }
  81. system_i386_GO32V2, { 2 }
  82. system_i386_linux, { 3 }
  83. system_i386_OS2, { 4 }
  84. system_i386_Win32, { 5 }
  85. system_i386_freebsd, { 6 }
  86. system_m68k_Amiga, { 7 }
  87. system_m68k_Atari, { 8 }
  88. system_m68k_macosclassic, { 9 }
  89. system_m68k_linux, { 10 }
  90. system_m68k_PalmOS, { 11 }
  91. obsolete_system_alpha_linux,{ 12 }
  92. system_powerpc_linux, { 13 }
  93. system_powerpc_macosclassic,{ 14 }
  94. system_i386_solaris, { 15 }
  95. system_i386_beos, { 16 }
  96. system_i386_netbsd, { 17 }
  97. system_m68k_netbsd, { 18 }
  98. system_i386_Netware, { 19 }
  99. obsolete_system_i386_qnx, { 20 }
  100. system_i386_wdosx, { 21 }
  101. system_sparc_solaris, { 22 }
  102. system_sparc_linux, { 23 }
  103. system_i386_openbsd, { 24 }
  104. obsolete_system_m68k_openbsd,{ 25 }
  105. system_x86_64_linux, { 26 }
  106. system_powerpc_darwin, { 27 }
  107. system_i386_EMX, { 28 }
  108. system_powerpc_netbsd, { 29 }
  109. system_powerpc_openbsd, { 30 }
  110. system_arm_linux, { 31 }
  111. system_i386_watcom, { 32 }
  112. system_powerpc_MorphOS, { 33 }
  113. system_x86_64_freebsd, { 34 }
  114. system_i386_netwlibc, { 35 }
  115. system_powerpc_Amiga, { 36 }
  116. system_x86_64_win64, { 37 }
  117. system_arm_wince, { 38 }
  118. obsolete_system_ia64_win64,{ 39 }
  119. system_i386_wince, { 40 }
  120. system_x86_6432_linux, { 41 }
  121. system_arm_gba, { 42 }
  122. system_powerpc64_linux, { 43 }
  123. system_i386_darwin, { 44 }
  124. system_arm_palmos, { 45 }
  125. system_powerpc64_darwin, { 46 }
  126. system_arm_nds, { 47 }
  127. system_i386_embedded, { 48 }
  128. system_m68k_embedded, { 49 }
  129. obsolete_system_alpha_embedded,{ 50 }
  130. system_powerpc_embedded, { 51 }
  131. system_sparc_embedded, { 52 }
  132. obsolete_system_vm_embedded,{ 53 }
  133. obsolete_system_ia64_embedded,{ 54 }
  134. system_x86_64_embedded, { 55 }
  135. obsolete_system_mips_embedded, { 56 } { duplicate of system_mipseb_embedded, 81 }
  136. system_arm_embedded, { 57 }
  137. system_powerpc64_embedded, { 58 }
  138. system_i386_symbian, { 59 }
  139. system_arm_symbian, { 60 }
  140. system_x86_64_darwin, { 61 }
  141. system_avr_embedded, { 62 }
  142. system_i386_haiku, { 63 }
  143. system_arm_ios, { 64 }
  144. system_x86_64_solaris, { 65 }
  145. system_mipseb_linux, { 66 }
  146. system_mipsel_linux, { 67 }
  147. system_i386_nativent, { 68 }
  148. system_i386_iphonesim, { 69 }
  149. system_powerpc_wii, { 70 }
  150. system_x86_64_openbsd, { 71 }
  151. system_x86_64_netbsd, { 72 }
  152. system_powerpc_aix, { 73 }
  153. system_powerpc64_aix, { 74 }
  154. system_jvm_java32, { 75 }
  155. system_jvm_android32, { 76 }
  156. system_arm_android, { 77 }
  157. system_i386_android, { 78 }
  158. system_i8086_msdos, { 79 }
  159. system_mipsel_android, { 80 }
  160. system_mipseb_embedded, { 81 }
  161. system_mipsel_embedded, { 82 }
  162. system_i386_aros, { 83 }
  163. system_x86_64_aros, { 84 }
  164. system_x86_64_dragonfly, { 85 }
  165. system_aarch64_ios, { 86 }
  166. system_x86_64_iphonesim, { 87 }
  167. system_aarch64_linux, { 88 }
  168. system_i8086_win16, { 89 }
  169. system_i8086_embedded, { 90 }
  170. system_arm_aros, { 91 }
  171. system_wasm_wasm32, { 92 }
  172. system_sparc64_linux, { 93 }
  173. system_sparc64_solaris, { 94 }
  174. system_arm_netbsd, { 95 }
  175. system_riscv32_linux, { 96 }
  176. system_riscv64_linux, { 97 }
  177. system_riscv64_embedded, { 98 }
  178. system_riscv32_embedded, { 99 }
  179. system_aarch64_android, { 100 }
  180. system_x86_64_android, { 101 }
  181. system_x86_64_haiku, { 102 }
  182. system_aarch64_darwin { 111 (in trunk) }
  183. );
  184. type
  185. tasm = (as_none
  186. ,as_gas { standard gnu assembler }
  187. ,as_i386_as_aout
  188. ,as_i386_nasmcoff
  189. ,as_i386_nasmwin32
  190. ,as_i386_nasmwdosx
  191. ,as_i386_nasmelf
  192. ,as_i386_nasmobj
  193. ,as_i386_nasmbeos
  194. ,as_i386_tasm
  195. ,as_i386_masm
  196. ,as_i386_wasm
  197. ,as_i386_coff
  198. ,as_i386_pecoff
  199. ,as_i386_elf32
  200. ,as_i386_pecoffwdosx
  201. ,as_m68k_mit
  202. ,as_powerpc_mpw
  203. ,as_darwin
  204. ,as_i386_macho
  205. ,as_x86_64_masm
  206. ,as_x86_64_pecoff
  207. ,as_i386_pecoffwince
  208. ,as_arm_pecoffwince
  209. ,as_x86_64_elf64
  210. ,as_sparc_elf32
  211. ,as_ggas { gnu assembler called "gas" instead of "as" }
  212. ,as_i386_nasmhaiku
  213. ,as_powerpc_vasm
  214. ,as_i386_nlmcoff
  215. ,as_powerpc_xcoff
  216. ,as_jvm_jasmin
  217. ,as_yasm
  218. ,as_i386_nasm
  219. ,as_i386_nasmdarwin
  220. ,as_x86_64_nasm
  221. ,as_x86_64_nasmwin64
  222. ,as_x86_64_nasmelf
  223. ,as_x86_64_nasmdarwin
  224. ,as_i8086_nasm
  225. ,as_i8086_nasmobj
  226. ,as_gas_powerpc_xcoff
  227. ,as_arm_elf32
  228. ,as_i8086_omf
  229. ,as_clang_asdarwin { machine code assembler in Darwin as style assembled by clang }
  230. ,as_solaris_as
  231. ,as_m68k_vasm
  232. ,as_m68k_as_aout
  233. ,as_wasm_binaryen
  234. ,as_powerpc_gas_legacy { for systems with very old GAS versions only, which don't support eg. named sections }
  235. ,as_clang_llvm
  236. ,as_clang_gas { machine code assembler in gas style assembled by clang }
  237. );
  238. tlink = (ld_none,
  239. ld_aix, { external linkers (one per OS, handles all CPUs) }
  240. ld_amiga,
  241. ld_aros,
  242. ld_atari,
  243. ld_android,
  244. ld_beos,
  245. ld_bsd,
  246. ld_darwin,
  247. ld_embedded,
  248. ld_emx,
  249. ld_gba,
  250. ld_go32v2,
  251. ld_haiku,
  252. ld_jvm,
  253. ld_linux,
  254. ld_morphos,
  255. ld_mpw,
  256. ld_msdos,
  257. ld_nds,
  258. ld_netwlibc,
  259. ld_netware,
  260. ld_os2,
  261. ld_palmos,
  262. ld_solaris,
  263. ld_watcom,
  264. ld_wdosx,
  265. ld_wii,
  266. ld_windows,
  267. ld_win16,
  268. ld_int_go32v2, { implemented internal linkers }
  269. ld_int_linux,
  270. ld_int_nativent,
  271. ld_int_netware,
  272. ld_int_windows,
  273. ld_int_msdos
  274. );
  275. tar = (ar_none
  276. ,ar_gnu_ar
  277. ,ar_mpw_ar
  278. ,ar_gnu_ar_scripted
  279. ,ar_gnu_gar
  280. ,ar_watcom_wlib_omf
  281. ,ar_watcom_wlib_omf_scripted
  282. );
  283. tres = (res_none
  284. ,res_gnu_windres,res_watcom_wrc_os2
  285. ,res_m68k_palmos,res_m68k_mpw
  286. ,res_powerpc_mpw,res_elf,res_xcoff
  287. ,res_win64_gorc, res_macho, res_ext
  288. ,res_jvm_raw
  289. );
  290. tresinfoflags = (res_external_file,res_arch_in_file_name
  291. ,res_single_file,res_no_compile);
  292. tdbg = (dbg_none
  293. ,dbg_stabs,dbg_stabx,dbg_dwarf2,dbg_dwarf3,dbg_dwarf4,dbg_jasmin
  294. ,dbg_codeview
  295. );
  296. tscripttype = (script_none
  297. ,script_dos,script_unix,script_amiga,
  298. script_mpw,
  299. script_fpcres
  300. );
  301. tabi = (abi_default
  302. ,abi_powerpc_sysv,abi_powerpc_aix,abi_powerpc_darwin,abi_powerpc_elfv2
  303. ,abi_eabi,abi_armeb,abi_eabihf
  304. ,abi_old_win32_gnu
  305. ,abi_aarch64_darwin
  306. { stack is aligned and all room for parameters is reserved on
  307. entry, but depending on the calling convention, the parameters
  308. may still be removed by the callee (and then the stack needs to
  309. be restored by the caller) }
  310. ,abi_i386_dynalignedstack
  311. );
  312. tcgbackend = (
  313. { default FPC code generator }
  314. cg_fpc
  315. { LLVM code generator }
  316. , cg_llvm
  317. );
  318. const
  319. abi_powerpc_elfv1 = abi_powerpc_sysv;