i_aix.pas 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. );
  90. system_powerpc64_aix_info : tsysteminfo =
  91. (
  92. system : system_powerpc64_aix;
  93. name : 'AIX for PowerPC64';
  94. shortname : 'AIX';
  95. flags : [tf_files_case_sensitive,tf_requires_proper_alignment,
  96. tf_smartlink_sections,tf_has_winlike_resources];
  97. cpu : cpu_powerpc64;
  98. unit_env : '';
  99. extradefines : 'UNIX;HASUNIX';
  100. exeext : '';
  101. defext : '.def';
  102. scriptext : '.sh';
  103. smartext : '.sl';
  104. unitext : '.ppu';
  105. unitlibext : '.ppl';
  106. asmext : '.s';
  107. objext : '.o';
  108. resext : '.res';
  109. resobjext : '.or';
  110. sharedlibext : '.a';
  111. staticlibext : '.a';
  112. staticlibprefix : 'libp';
  113. sharedlibprefix : 'lib';
  114. sharedClibext : '.a';
  115. staticClibext : '.a';
  116. staticClibprefix : 'lib';
  117. sharedClibprefix : 'lib';
  118. importlibprefix : 'libimp';
  119. importlibext : '.a';
  120. Cprefix : '';
  121. newline : #10;
  122. dirsep : '/';
  123. assem : as_powerpc_xcoff;
  124. assemextern : as_powerpc_xcoff;
  125. link : ld_none;
  126. linkextern : ld_aix;
  127. ar : ar_gnu_ar;
  128. res : res_xcoff;
  129. dbg : dbg_stabx;
  130. script : script_unix;
  131. endian : endian_big;
  132. alignment :
  133. (
  134. procalign : 8;
  135. loopalign : 4;
  136. jumpalign : 0;
  137. jumpalignskipmax : 0;
  138. coalescealign : 0;
  139. coalescealignskipmax: 0;
  140. constalignmin : 8;
  141. constalignmax : 16;
  142. varalignmin : 8;
  143. varalignmax : 16;
  144. localalignmin : 0;
  145. localalignmax : 16;
  146. recordalignmin : 0;
  147. recordalignmax : 16;
  148. maxCrecordalign : 8
  149. );
  150. first_parm_offset : 8;
  151. stacksize : 10*1024*1024;
  152. stackalign : 16;
  153. abi : abi_powerpc_aix;
  154. 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';
  155. );
  156. implementation
  157. initialization
  158. {$ifdef CPUPOWERPC32}
  159. {$ifdef aix}
  160. set_source_info(system_powerpc_aix_info);
  161. {$endif aix}
  162. {$endif CPUPOWERPC32}
  163. {$ifdef CPUPOWERPC64}
  164. {$ifdef aix}
  165. set_source_info(system_powerpc64_aix_info);
  166. {$endif aix}
  167. {$endif CPUPOWERPC64}
  168. end.