i_aros.pas 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. {
  2. Copyright (c) 1998-2002 by Peter Vreman
  3. This unit implements support information structures for arosOS
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. { This unit implements support information structures for the arosOS. }
  18. unit i_aros;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. systems;
  23. const
  24. system_i386_aros_info : tsysteminfo =
  25. (
  26. system : system_i386_aros;
  27. name : 'AROS for i386';
  28. shortname : 'AROS';
  29. flags : [tf_files_case_aware, tf_smartlink_sections, tf_has_winlike_resources];
  30. cpu : cpu_i386;
  31. unit_env : 'AROSUNITS';
  32. extradefines : 'HASAMIGA;AROS_ABIv0';
  33. exeext : '';
  34. defext : '.def';
  35. scriptext : '.sh';
  36. smartext : '.sl';
  37. unitext : '.ppu';
  38. unitlibext : '.ppl';
  39. asmext : '.s';
  40. objext : '.o';
  41. resext : '.res';
  42. resobjext : '.or';
  43. sharedlibext : '.library';
  44. staticlibext : '.a';
  45. staticlibprefix : 'libp';
  46. sharedlibprefix : '';
  47. sharedClibext : '.library';
  48. staticClibext : '.a';
  49. staticClibprefix : 'lib';
  50. sharedClibprefix : '';
  51. importlibprefix : 'libimp';
  52. importlibext : '.a';
  53. Cprefix : '';
  54. newline : #10;
  55. dirsep : '/';
  56. assem : as_i386_elf32;
  57. assemextern : as_gas;
  58. link : ld_none;
  59. linkextern : ld_aros;
  60. ar : ar_gnu_ar;
  61. res : res_elf;
  62. dbg : dbg_stabs;
  63. script : script_amiga;
  64. endian : endian_little;
  65. alignment :
  66. (
  67. procalign : 16;
  68. loopalign : 4;
  69. jumpalign : 0;
  70. jumpalignskipmax : 0;
  71. coalescealign : 0;
  72. coalescealignskipmax: 0;
  73. constalignmin : 0;
  74. constalignmax : 16;
  75. varalignmin : 0;
  76. varalignmax : 16;
  77. localalignmin : 0;
  78. localalignmax : 4;
  79. recordalignmin : 0;
  80. recordalignmax : 16;
  81. maxCrecordalign : 4
  82. );
  83. first_parm_offset : 8;
  84. stacksize : 262144;
  85. stackalign : 4;
  86. abi : abi_default;
  87. llvmdatalayout : 'todo';
  88. );
  89. system_x86_64_aros_info : tsysteminfo =
  90. (
  91. system : system_x86_64_aros;
  92. name : 'AROS for x86_64';
  93. shortname : 'AROS';
  94. flags : [tf_files_case_aware, tf_smartlink_sections, tf_has_winlike_resources];
  95. cpu : cpu_x86_64;
  96. unit_env : 'AROSUNITS';
  97. extradefines : 'HASAMIGA;AROS_BINCOMPAT;AROS_ABIv1';
  98. exeext : '';
  99. defext : '.def';
  100. scriptext : '.sh';
  101. smartext : '.sl';
  102. unitext : '.ppu';
  103. unitlibext : '.ppl';
  104. asmext : '.s';
  105. objext : '.o';
  106. resext : '.res';
  107. resobjext : '.or';
  108. sharedlibext : '.library';
  109. staticlibext : '.a';
  110. staticlibprefix : 'libp';
  111. sharedlibprefix : '';
  112. sharedClibext : '.library';
  113. staticClibext : '.a';
  114. staticClibprefix : 'lib';
  115. sharedClibprefix : '';
  116. importlibprefix : 'libimp';
  117. importlibext : '.a';
  118. Cprefix : '';
  119. newline : #10;
  120. dirsep : '/';
  121. assem : as_x86_64_elf64;
  122. assemextern : as_gas;
  123. link : ld_none;
  124. linkextern : ld_aros;
  125. ar : ar_gnu_ar;
  126. res : res_elf;
  127. dbg : dbg_stabs;
  128. script : script_amiga;
  129. endian : endian_little;
  130. alignment :
  131. (
  132. procalign : 8;
  133. loopalign : 4;
  134. jumpalign : 0;
  135. jumpalignskipmax : 0;
  136. coalescealign : 0;
  137. coalescealignskipmax: 0;
  138. constalignmin : 0;
  139. constalignmax : 16;
  140. varalignmin : 0;
  141. varalignmax : 16;
  142. localalignmin : 4;
  143. localalignmax : 16;
  144. recordalignmin : 0;
  145. recordalignmax : 16;
  146. maxCrecordalign : 16
  147. );
  148. first_parm_offset : 16;
  149. stacksize : 1*1024*1024;
  150. stackalign : 16; { fix me: this is a wild guess for now (KB) }
  151. abi : abi_default;
  152. llvmdatalayout : 'todo';
  153. );
  154. system_arm_aros_info : tsysteminfo =
  155. (
  156. system : system_arm_aros;
  157. name : 'AROS for ARM';
  158. shortname : 'AROS';
  159. flags : [tf_files_case_aware, tf_smartlink_sections, tf_has_winlike_resources];
  160. cpu : cpu_arm;
  161. unit_env : 'AROSUNITS';
  162. extradefines : 'HASAMIGA;AROS_BINCOMPAT;AROS_ABIv0';
  163. exeext : '';
  164. defext : '.def';
  165. scriptext : '.sh';
  166. smartext : '.sl';
  167. unitext : '.ppu';
  168. unitlibext : '.ppl';
  169. asmext : '.s';
  170. objext : '.o';
  171. resext : '.res';
  172. resobjext : '.or';
  173. sharedlibext : '.library';
  174. staticlibext : '.a';
  175. staticlibprefix : 'libp';
  176. sharedlibprefix : '';
  177. sharedClibext : '.library';
  178. staticClibext : '.a';
  179. staticClibprefix : 'lib';
  180. sharedClibprefix : '';
  181. importlibprefix : 'libimp';
  182. importlibext : '.a';
  183. Cprefix : '';
  184. newline : #10;
  185. dirsep : '/';
  186. assem : as_arm_elf32;
  187. assemextern : as_gas;
  188. link : ld_none;
  189. linkextern : ld_aros;
  190. ar : ar_gnu_ar;
  191. res : res_elf;
  192. dbg : dbg_stabs;
  193. script : script_amiga;
  194. endian : endian_little;
  195. alignment :
  196. (
  197. procalign : 16;
  198. loopalign : 4;
  199. jumpalign : 0;
  200. jumpalignskipmax : 0;
  201. coalescealign : 0;
  202. coalescealignskipmax: 0;
  203. constalignmin : 0;
  204. constalignmax : 16;
  205. varalignmin : 0;
  206. varalignmax : 16;
  207. localalignmin : 0;
  208. localalignmax : 4;
  209. recordalignmin : 0;
  210. recordalignmax : 16;
  211. maxCrecordalign : 4
  212. );
  213. first_parm_offset : 8;
  214. stacksize : 262144;
  215. stackalign : 4;
  216. abi : abi_default;
  217. llvmdatalayout : 'todo';
  218. );
  219. implementation
  220. initialization
  221. {$ifdef CPU86}
  222. {$ifdef aros}
  223. set_source_info(system_i386_aros_info);
  224. {$endif aros}
  225. {$endif CPU86}
  226. {$ifdef CPUX86_64}
  227. {$ifdef AROS}
  228. set_source_info(system_x86_64_aros_info);
  229. {$endif AROS}
  230. {$endif CPUX86_64}
  231. {$ifdef CPUARM}
  232. {$ifdef AROS}
  233. set_source_info(system_arm_aros_info);
  234. {$endif AROS}
  235. {$endif CPUX86_64}
  236. end.