i_sunos.pas 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. {
  2. Copyright (c) 1998-2008 by Peter Vreman
  3. This unit implements support information structures for solaris
  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 solaris. }
  18. unit i_sunos;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. systems;
  23. const
  24. system_i386_solaris_info : tsysteminfo =
  25. (
  26. system : system_i386_solaris;
  27. name : 'Solaris for i386';
  28. shortname : 'solaris';
  29. flags : [tf_under_development,tf_needs_symbol_size,
  30. tf_files_case_sensitive,tf_requires_proper_alignment,
  31. tf_smartlink_library,tf_has_winlike_resources];
  32. cpu : cpu_i386;
  33. unit_env : 'SOLARISUNITS';
  34. extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
  35. exeext : '';
  36. defext : '.def';
  37. scriptext : '.sh';
  38. smartext : '.sl';
  39. unitext : '.ppu';
  40. unitlibext : '.ppl';
  41. asmext : '.s';
  42. objext : '.o';
  43. resext : '.res';
  44. resobjext : '.or';
  45. sharedlibext : '.so';
  46. staticlibext : '.a';
  47. staticlibprefix : 'libp';
  48. sharedlibprefix : 'lib';
  49. sharedClibext : '.so';
  50. staticClibext : '.a';
  51. staticClibprefix : 'lib';
  52. sharedClibprefix : 'lib';
  53. importlibprefix : 'libimp';
  54. importlibext : '.a';
  55. Cprefix : '';
  56. newline : #10;
  57. dirsep : '/';
  58. assem : as_i386_elf32;
  59. assemextern : as_ggas;
  60. link : nil;
  61. linkextern : nil;
  62. ar : ar_gnu_gar;
  63. res : res_elf;
  64. dbg : dbg_stabs;
  65. script : script_unix;
  66. endian : endian_little;
  67. alignment :
  68. (
  69. procalign : 16;
  70. loopalign : 4;
  71. jumpalign : 0;
  72. constalignmin : 0;
  73. constalignmax : 8;
  74. varalignmin : 0;
  75. varalignmax : 16;
  76. localalignmin : 4;
  77. localalignmax : 8;
  78. recordalignmin : 0;
  79. recordalignmax : 16;
  80. maxCrecordalign : 4
  81. );
  82. first_parm_offset : 8;
  83. stacksize : 262144;
  84. abi : abi_default;
  85. );
  86. system_x86_64_solaris_info : tsysteminfo =
  87. (
  88. system : system_x86_64_solaris;
  89. name : 'Solaris for x86-64';
  90. shortname : 'solaris';
  91. flags : [tf_needs_symbol_size,tf_needs_symbol_type,
  92. tf_under_development,
  93. tf_files_case_sensitive,
  94. tf_requires_proper_alignment,tf_smartlink_library,tf_library_needs_pic,
  95. tf_has_winlike_resources];
  96. cpu : cpu_x86_64;
  97. unit_env : 'SOLARISUNITS';
  98. extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
  99. exeext : '';
  100. defext : '.def';
  101. scriptext : '.sh';
  102. smartext : '.sl';
  103. unitext : '.ppu';
  104. unitlibext : '.ppl';
  105. asmext : '.s';
  106. objext : '.o';
  107. resext : '.res';
  108. resobjext : '.or';
  109. sharedlibext : '.so';
  110. staticlibext : '.a';
  111. staticlibprefix : 'libp';
  112. sharedlibprefix : 'lib';
  113. sharedClibext : '.so';
  114. staticClibext : '.a';
  115. staticClibprefix : 'lib';
  116. sharedClibprefix : 'lib';
  117. importlibprefix : 'libimp';
  118. importlibext : '.a';
  119. Cprefix : '';
  120. newline : #10;
  121. dirsep : '/';
  122. assem : as_ggas{as_x86_64_elf64};
  123. assemextern : as_ggas;
  124. link : nil;
  125. linkextern : nil;
  126. ar : ar_gnu_ar;
  127. res : res_elf;
  128. dbg : dbg_dwarf2;
  129. script : script_unix;
  130. endian : endian_little;
  131. alignment :
  132. (
  133. procalign : 8;
  134. loopalign : 4;
  135. jumpalign : 0;
  136. constalignmin : 0;
  137. constalignmax : 8;
  138. varalignmin : 0;
  139. varalignmax : 16;
  140. localalignmin : 4;
  141. localalignmax : 16;
  142. recordalignmin : 0;
  143. recordalignmax : 16;
  144. maxCrecordalign : 16
  145. );
  146. first_parm_offset : 16;
  147. stacksize : 8*1024*1024;
  148. abi : abi_default
  149. );
  150. system_sparc_solaris_info : tsysteminfo =
  151. (
  152. system : system_sparc_solaris;
  153. name : 'Solaris for SPARC';
  154. shortname : 'solaris';
  155. flags : [tf_needs_symbol_size,tf_under_development,
  156. tf_files_case_sensitive,
  157. tf_requires_proper_alignment,tf_smartlink_library,
  158. tf_has_winlike_resources];
  159. cpu : cpu_SPARC;
  160. unit_env : 'SOLARISUNITS';
  161. extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
  162. exeext : '';
  163. defext : '.def';
  164. scriptext : '.sh';
  165. smartext : '.sl';
  166. unitext : '.ppu';
  167. unitlibext : '.ppl';
  168. asmext : '.s';
  169. objext : '.o';
  170. resext : '.res';
  171. resobjext : '.or';
  172. sharedlibext : '.so';
  173. staticlibext : '.a';
  174. staticlibprefix : 'libp';
  175. sharedlibprefix : 'lib';
  176. sharedClibext : '.so';
  177. staticClibext : '.a';
  178. staticClibprefix : 'lib';
  179. sharedClibprefix : 'lib';
  180. importlibprefix : 'libimp';
  181. importlibext : '.a';
  182. Cprefix : '';
  183. newline : #10;
  184. dirsep : '/';
  185. assem : as_ggas;
  186. assemextern : as_ggas;
  187. link : nil;
  188. linkextern : nil;
  189. ar : ar_gnu_gar;
  190. res : res_elf;
  191. dbg : dbg_stabs;
  192. script : script_unix;
  193. endian : endian_big;
  194. alignment :
  195. (
  196. procalign : 4;
  197. loopalign : 4;
  198. jumpalign : 0;
  199. constalignmin : 4;
  200. constalignmax : 8;
  201. varalignmin : 4;
  202. varalignmax : 8;
  203. localalignmin : 4;
  204. localalignmax : 8;
  205. recordalignmin : 0;
  206. recordalignmax : 8;
  207. maxCrecordalign : 8
  208. );
  209. first_parm_offset : 92;
  210. stacksize : 262144;
  211. abi : abi_default;
  212. );
  213. implementation
  214. initialization
  215. {$ifdef CPU86}
  216. {$ifdef solaris}
  217. set_source_info(system_i386_solaris_info);
  218. {$endif solaris}
  219. {$endif CPU86}
  220. {$ifdef CPUX86_64}
  221. {$ifdef solaris}
  222. set_source_info(system_x86_64_solaris_info);
  223. {$endif solaris}
  224. {$endif CPUX86_64}
  225. {$ifdef CPUSparc}
  226. {$ifdef solaris}
  227. set_source_info(system_sparc_solaris_info);
  228. {$endif solaris}
  229. {$endif CPUSparc}
  230. end.