i_fbsd.pas 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Peter Vreman
  4. This unit implements support information structures for FreeBSD/NetBSD
  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 FreeBSD/NetBSD. }
  19. unit i_fbsd;
  20. interface
  21. uses
  22. systems;
  23. const
  24. system_i386_freebsd_info : tsysteminfo =
  25. (
  26. system : system_i386_FreeBSD;
  27. name : 'FreeBSD/ELF for i386';
  28. shortname : 'FreeBSD';
  29. flags : [];
  30. cpu : cpu_i386;
  31. unit_env : 'BSDUNITS';
  32. extradefines : 'UNIX;BSD';
  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_i386_elf32;
  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 : 4;
  72. varalignmin : 0;
  73. varalignmax : 4;
  74. localalignmin : 0;
  75. localalignmax : 4;
  76. paraalign : 4;
  77. recordalignmin : 0;
  78. recordalignmax : 2;
  79. maxCrecordalign : 4
  80. );
  81. first_parm_offset : 8;
  82. heapsize : 256*1024;
  83. stacksize : 262144;
  84. DllScanSupported:false;
  85. use_function_relative_addresses : true
  86. );
  87. system_i386_netbsd_info : tsysteminfo =
  88. (
  89. system : system_i386_NetBSD;
  90. name : 'NetBSD for i386';
  91. shortname : 'NetBSD';
  92. flags : [tf_under_development];
  93. cpu : cpu_i386;
  94. unit_env : 'BSDUNITS';
  95. extradefines : 'UNIX;BSD';
  96. sourceext : '.pp';
  97. pasext : '.pas';
  98. exeext : '';
  99. defext : '.def';
  100. scriptext : '.sh';
  101. smartext : '.sl';
  102. unitext : '.ppu';
  103. unitlibext : '.ppl';
  104. asmext : '.s';
  105. objext : '.o';
  106. resext : '.res';
  107. resobjext : '.or';
  108. sharedlibext : '.so';
  109. staticlibext : '.a';
  110. staticlibprefix : 'libp';
  111. sharedlibprefix : 'lib';
  112. sharedClibext : '.so';
  113. staticClibext : '.a';
  114. staticClibprefix : 'lib';
  115. sharedClibprefix : 'lib';
  116. Cprefix : '_';
  117. newline : #10;
  118. dirsep : '/';
  119. files_case_relevent : true;
  120. assem : as_gas;
  121. assemextern : as_gas;
  122. link : nil;
  123. linkextern : nil;
  124. ar : ar_gnu_ar;
  125. res : res_none;
  126. script : script_unix;
  127. endian : endian_little;
  128. alignment :
  129. (
  130. procalign : 4;
  131. loopalign : 4;
  132. jumpalign : 0;
  133. constalignmin : 0;
  134. constalignmax : 1;
  135. varalignmin : 0;
  136. varalignmax : 1;
  137. localalignmin : 0;
  138. localalignmax : 1;
  139. paraalign : 4;
  140. recordalignmin : 0;
  141. recordalignmax : 2;
  142. maxCrecordalign : 4
  143. );
  144. first_parm_offset : 8;
  145. heapsize : 256*1024;
  146. stacksize : 262144;
  147. DllScanSupported:false;
  148. use_function_relative_addresses : true
  149. );
  150. system_m68k_netbsd_info : tsysteminfo =
  151. (
  152. system : system_m68k_NetBSD;
  153. name : 'NetBSD for m68k';
  154. shortname : 'NetBSD';
  155. flags : [tf_under_development];
  156. cpu : cpu_m68k;
  157. unit_env : 'BSDUNITS';
  158. extradefines : 'UNIX;BSD';
  159. sourceext : '.pp';
  160. pasext : '.pas';
  161. exeext : '';
  162. defext : '.def';
  163. scriptext : '.sh';
  164. smartext : '.sl';
  165. unitext : '.ppu';
  166. unitlibext : '.ppl';
  167. asmext : '.s';
  168. objext : '.o';
  169. resext : '.res';
  170. resobjext : '.or';
  171. sharedlibext : '.so';
  172. staticlibext : '.a';
  173. staticlibprefix : 'libp';
  174. sharedlibprefix : 'lib';
  175. sharedClibext : '.so';
  176. staticClibext : '.a';
  177. staticClibprefix : 'lib';
  178. sharedClibprefix : 'lib';
  179. Cprefix : '';
  180. newline : #10;
  181. dirsep : '/';
  182. files_case_relevent : true;
  183. assem : as_gas;
  184. assemextern : as_gas;
  185. link : nil;
  186. linkextern : nil;
  187. ar : ar_gnu_ar;
  188. res : res_none;
  189. script : script_unix;
  190. endian : endian_big;
  191. alignment :
  192. (
  193. procalign : 4;
  194. loopalign : 4;
  195. jumpalign : 0;
  196. constalignmin : 0;
  197. constalignmax : 1;
  198. varalignmin : 0;
  199. varalignmax : 1;
  200. localalignmin : 0;
  201. localalignmax : 1;
  202. paraalign : 4;
  203. recordalignmin : 0;
  204. recordalignmax : 2;
  205. maxCrecordalign : 4
  206. );
  207. first_parm_offset : 8;
  208. heapsize : 256*1024;
  209. stacksize : 262144;
  210. DllScanSupported:false;
  211. use_function_relative_addresses : true
  212. );
  213. implementation
  214. initialization
  215. {$ifdef cpu86}
  216. {$ifdef FreeBSD}
  217. set_source_info(system_i386_FreeBSD_info);
  218. {$endif}
  219. {$ifdef NetBSD}
  220. set_source_info(system_i386_NetBSD_info);
  221. {$endif}
  222. {$endif cpu86}
  223. {$ifdef cpu68}
  224. {$ifdef NetBSD}
  225. set_source_info(system_m68k_NetBSD_info);
  226. {$endif NetBSD}
  227. {$endif cpu68}
  228. end.
  229. {
  230. $Log$
  231. Revision 1.1 2002-09-06 15:03:51 carl
  232. * moved files to systems directory
  233. Revision 1.3 2002/08/13 18:01:51 carl
  234. * rename swatoperands to swapoperands
  235. + m68k first compilable version (still needs a lot of testing):
  236. assembler generator, system information , inline
  237. assembler reader.
  238. Revision 1.2 2002/08/12 15:08:39 carl
  239. + stab register indexes for powerpc (moved from gdb to cpubase)
  240. + tprocessor enumeration moved to cpuinfo
  241. + linker in target_info is now a class
  242. * many many updates for m68k (will soon start to compile)
  243. - removed some ifdef or correct them for correct cpu
  244. Revision 1.1 2002/07/26 21:15:38 florian
  245. * rewrote the system handling
  246. }