i_aix.pas 6.0 KB

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