i_aix.pas 5.6 KB

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