i_aix.pas 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. {
  2. Copyright (c) 1998-2008 by Peter Vreman
  3. Copyright (c) 2011 by Jonas Maebe
  4. This unit implements support information structures for AIX
  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_aix;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. systems, rescmn;
  23. const
  24. system_powerpc_aix_info : tsysteminfo =
  25. (
  26. system : system_powerpc_aix;
  27. name : 'AIX for PowerPC';
  28. shortname : 'AIX';
  29. flags : [tf_files_case_sensitive,tf_requires_proper_alignment,
  30. tf_smartlink_sections,tf_has_winlike_resources];
  31. cpu : cpu_powerpc;
  32. unit_env : '';
  33. extradefines : 'UNIX;HASUNIX';
  34. exeext : '';
  35. defext : '.def';
  36. scriptext : '.sh';
  37. smartext : '.sl';
  38. unitext : '.ppu';
  39. unitlibext : '.ppl';
  40. asmext : '.s';
  41. objext : '.o';
  42. resext : '.res';
  43. resobjext : '.or';
  44. sharedlibext : '.a';
  45. staticlibext : '.a';
  46. staticlibprefix : 'libp';
  47. sharedlibprefix : 'lib';
  48. sharedClibext : '.a';
  49. staticClibext : '.a';
  50. staticClibprefix : 'lib';
  51. sharedClibprefix : 'lib';
  52. importlibprefix : 'libimp';
  53. importlibext : '.a';
  54. Cprefix : '';
  55. newline : #10;
  56. dirsep : '/';
  57. assem : as_powerpc_xcoff;
  58. assemextern : as_powerpc_xcoff;
  59. link : ld_none;
  60. linkextern : ld_aix;
  61. ar : ar_gnu_ar;
  62. res : res_xcoff;
  63. dbg : dbg_stabx;
  64. script : script_unix;
  65. endian : endian_big;
  66. alignment :
  67. (
  68. procalign : 4;
  69. loopalign : 4;
  70. jumpalign : 0;
  71. jumpalignskipmax : 0;
  72. coalescealign : 0;
  73. coalescealignskipmax: 0;
  74. constalignmin : 0;
  75. constalignmax : 4;
  76. varalignmin : 0;
  77. varalignmax : 4;
  78. localalignmin : 4;
  79. localalignmax : 4;
  80. recordalignmin : 0;
  81. recordalignmax : 4;
  82. maxCrecordalign : 8
  83. );
  84. first_parm_offset : 8;
  85. stacksize : 32*1024*1024;
  86. stackalign : 16;
  87. abi : abi_powerpc_aix;
  88. 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-v128:128:128-n32';
  89. mos6502page0alloc : [];
  90. );
  91. system_powerpc64_aix_info : tsysteminfo =
  92. (
  93. system : system_powerpc64_aix;
  94. name : 'AIX for PowerPC64';
  95. shortname : 'AIX';
  96. flags : [tf_files_case_sensitive,tf_requires_proper_alignment,
  97. tf_smartlink_sections,tf_has_winlike_resources];
  98. cpu : cpu_powerpc64;
  99. unit_env : '';
  100. extradefines : 'UNIX;HASUNIX';
  101. exeext : '';
  102. defext : '.def';
  103. scriptext : '.sh';
  104. smartext : '.sl';
  105. unitext : '.ppu';
  106. unitlibext : '.ppl';
  107. asmext : '.s';
  108. objext : '.o';
  109. resext : '.res';
  110. resobjext : '.or';
  111. sharedlibext : '.a';
  112. staticlibext : '.a';
  113. staticlibprefix : 'libp';
  114. sharedlibprefix : 'lib';
  115. sharedClibext : '.a';
  116. staticClibext : '.a';
  117. staticClibprefix : 'lib';
  118. sharedClibprefix : 'lib';
  119. importlibprefix : 'libimp';
  120. importlibext : '.a';
  121. Cprefix : '';
  122. newline : #10;
  123. dirsep : '/';
  124. assem : as_powerpc_xcoff;
  125. assemextern : as_powerpc_xcoff;
  126. link : ld_none;
  127. linkextern : ld_aix;
  128. ar : ar_gnu_ar;
  129. res : res_xcoff;
  130. dbg : dbg_stabx;
  131. script : script_unix;
  132. endian : endian_big;
  133. alignment :
  134. (
  135. procalign : 8;
  136. loopalign : 4;
  137. jumpalign : 0;
  138. jumpalignskipmax : 0;
  139. coalescealign : 0;
  140. coalescealignskipmax: 0;
  141. constalignmin : 8;
  142. constalignmax : 16;
  143. varalignmin : 8;
  144. varalignmax : 16;
  145. localalignmin : 0;
  146. localalignmax : 16;
  147. recordalignmin : 0;
  148. recordalignmax : 16;
  149. maxCrecordalign : 8
  150. );
  151. first_parm_offset : 8;
  152. stacksize : 10*1024*1024;
  153. stackalign : 16;
  154. abi : abi_powerpc_aix;
  155. 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-f128:64:64-v128:128:128-n32:64';
  156. mos6502page0alloc : [];
  157. );
  158. implementation
  159. initialization
  160. {$ifdef CPUPOWERPC32}
  161. {$ifdef aix}
  162. set_source_info(system_powerpc_aix_info);
  163. {$endif aix}
  164. {$endif CPUPOWERPC32}
  165. {$ifdef CPUPOWERPC64}
  166. {$ifdef aix}
  167. set_source_info(system_powerpc64_aix_info);
  168. {$endif aix}
  169. {$endif CPUPOWERPC64}
  170. end.