i_sunos.pas 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Peter Vreman
  4. This unit implements support information structures for SunOS
  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. { This unit implements support information structures for SunOS. }
  19. unit i_sunos;
  20. interface
  21. uses
  22. systems;
  23. const
  24. system_i386_sunos_info : tsysteminfo =
  25. (
  26. system : system_i386_sunos;
  27. name : 'SunOS/ELF for i386';
  28. shortname : 'SunOS';
  29. flags : [tf_under_development];
  30. cpu : cpu_i386;
  31. unit_env : 'SUNOSUNITS';
  32. extradefines : 'UNIX;SOLARIS;LIBC';
  33. sourceext : '.pp';
  34. pasext : '.pas';
  35. exeext : '';
  36. defext : '.def';
  37. scriptext : '.sh';
  38. smartext : '.sl';
  39. unitext : '.ppu';
  40. unitlibext : '.ppl';
  41. asmext : '.s';
  42. objext : '.o';
  43. resext : '.res';
  44. resobjext : '.or';
  45. sharedlibext : '.so';
  46. staticlibext : '.a';
  47. staticlibprefix : 'libp';
  48. sharedlibprefix : 'lib';
  49. sharedClibext : '.so';
  50. staticClibext : '.a';
  51. staticClibprefix : 'lib';
  52. sharedClibprefix : 'lib';
  53. Cprefix : '';
  54. newline : #10;
  55. dirsep : '/';
  56. files_case_relevent : true;
  57. assem : as_gas;
  58. assemextern : as_gas;
  59. link : nil;
  60. linkextern : nil;
  61. ar : ar_gnu_ar;
  62. res : res_none;
  63. script : script_unix;
  64. endian : endian_little;
  65. alignment :
  66. (
  67. procalign : 4;
  68. loopalign : 4;
  69. jumpalign : 0;
  70. constalignmin : 0;
  71. constalignmax : 1;
  72. varalignmin : 0;
  73. varalignmax : 1;
  74. localalignmin : 0;
  75. localalignmax : 1;
  76. recordalignmin : 0;
  77. recordalignmax : 2;
  78. maxCrecordalign : 4
  79. );
  80. first_parm_offset : 8;
  81. heapsize : 256*1024;
  82. stacksize : 262144;
  83. DllScanSupported:false;
  84. use_function_relative_addresses : true
  85. );
  86. system_sparc_sunos_info : tsysteminfo =
  87. (
  88. system : system_sparc_sunos;
  89. name : 'SunOS for SPARC';
  90. shortname : 'SunOS';
  91. flags : [tf_needs_symbol_size];
  92. cpu : cpu_SPARC;
  93. unit_env : 'SUNOSUNITS';
  94. extradefines : 'UNIX;HASUNIX';
  95. sourceext : '.pp';
  96. pasext : '.pas';
  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 : '.so';
  108. staticlibext : '.a';
  109. staticlibprefix : 'libp';
  110. sharedlibprefix : 'lib';
  111. sharedClibext : '.so';
  112. staticClibext : '.a';
  113. staticClibprefix : 'lib';
  114. sharedClibprefix : 'lib';
  115. Cprefix : '';
  116. newline : #10;
  117. dirsep : '/';
  118. files_case_relevent : true;
  119. assem : as_gas;
  120. assemextern : as_gas;
  121. link : nil;
  122. linkextern : nil;
  123. ar : ar_gnu_ar;
  124. res : res_none;
  125. script : script_unix;
  126. endian : endian_big;
  127. alignment :
  128. (
  129. procalign : 4;
  130. loopalign : 4;
  131. jumpalign : 0;
  132. constalignmin : 0;
  133. constalignmax : 8;
  134. varalignmin : 0;
  135. varalignmax : 8;
  136. localalignmin : 4;
  137. localalignmax : 8;
  138. recordalignmin : 0;
  139. recordalignmax : 8;
  140. maxCrecordalign : 8
  141. );
  142. first_parm_offset : 92;
  143. heapsize : 256*1024;
  144. stacksize : 262144;
  145. DllScanSupported:false;
  146. use_function_relative_addresses : true
  147. );
  148. implementation
  149. initialization
  150. {$ifdef CPU86}
  151. {$ifdef sunos}
  152. set_source_info(system_i386_sunos_info);
  153. {$endif sunos}
  154. {$endif CPU86}
  155. {$ifdef CPUSparc}
  156. {$ifdef sunos}
  157. set_source_info(system_sparc_sunos_info);
  158. {$endif sunos}
  159. {$endif CPUSparc}
  160. end.
  161. {
  162. $Log$
  163. Revision 1.4 2004-10-01 17:41:21 marco
  164. * small updates to make playing with sparc/sunos easier
  165. Revision 1.3 2004/06/20 08:55:32 florian
  166. * logs truncated
  167. }