i_fbsd.pas 8.7 KB

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