i_aix.pas 5.7 KB

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