i_win.pas 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. {
  2. Copyright (c) 1998-2002 by Peter Vreman
  3. This unit implements support information structures for win32
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. { This unit implements support information structures for win32. }
  18. unit i_win;
  19. interface
  20. uses
  21. systems;
  22. const
  23. system_i386_win32_info : tsysteminfo =
  24. (
  25. system : system_i386_WIN32;
  26. name : 'Win32 for i386';
  27. shortname : 'Win32';
  28. flags : [];
  29. cpu : cpu_i386;
  30. unit_env : 'WIN32UNITS';
  31. extradefines : 'MSWINDOWS';
  32. exeext : '.exe';
  33. defext : '.def';
  34. scriptext : '.bat';
  35. smartext : '.sl';
  36. unitext : '.ppu';
  37. unitlibext : '.ppl';
  38. asmext : '.s';
  39. objext : '.o';
  40. resext : '.rc';
  41. resobjext : '.or';
  42. sharedlibext : '.dll';
  43. staticlibext : '.a';
  44. staticlibprefix : 'libp';
  45. sharedlibprefix : '';
  46. sharedClibext : '.dll';
  47. staticClibext : '.a';
  48. staticClibprefix : 'lib';
  49. sharedClibprefix : '';
  50. p_ext_support : false;
  51. Cprefix : '_';
  52. newline : #13#10;
  53. dirsep : '\';
  54. files_case_relevent : true;
  55. assem : as_i386_pecoff;
  56. assemextern : as_gas;
  57. link : nil;
  58. linkextern : nil;
  59. ar : ar_gnu_ar;
  60. res : res_gnu_windres;
  61. script : script_dos;
  62. endian : endian_little;
  63. alignment :
  64. (
  65. procalign : 4;
  66. loopalign : 4;
  67. jumpalign : 0;
  68. constalignmin : 0;
  69. constalignmax : 4;
  70. varalignmin : 0;
  71. varalignmax : 4;
  72. localalignmin : 4;
  73. localalignmax : 4;
  74. recordalignmin : 0;
  75. recordalignmax : 4;
  76. maxCrecordalign : 16
  77. );
  78. first_parm_offset : 8;
  79. stacksize : 262144;
  80. DllScanSupported:true;
  81. use_function_relative_addresses : true
  82. );
  83. system_x64_win64_info : tsysteminfo =
  84. (
  85. system : system_x86_64_win64;
  86. name : 'Win64 for x64';
  87. shortname : 'Win64';
  88. flags : [];
  89. cpu : cpu_x86_64;
  90. unit_env : 'WIN64UNITS';
  91. extradefines : 'MSWINDOWS';
  92. exeext : '.exe';
  93. defext : '.def';
  94. scriptext : '.bat';
  95. smartext : '.sl';
  96. unitext : '.ppu';
  97. unitlibext : '.ppl';
  98. asmext : '.s';
  99. objext : '.o';
  100. resext : '.rc';
  101. resobjext : '.or';
  102. sharedlibext : '.dll';
  103. staticlibext : '.a';
  104. staticlibprefix : 'libp';
  105. sharedlibprefix : '';
  106. sharedClibext : '.dll';
  107. staticClibext : '.a';
  108. staticClibprefix : 'lib';
  109. sharedClibprefix : '';
  110. p_ext_support : false;
  111. Cprefix : '_';
  112. newline : #13#10;
  113. dirsep : '\';
  114. files_case_relevent : true;
  115. assem : as_x86_64_pecoff;
  116. assemextern : as_x86_64_masm;
  117. link : nil;
  118. linkextern : nil;
  119. ar : ar_gnu_ar;
  120. res : res_gnu_windres;
  121. script : script_dos;
  122. endian : endian_little;
  123. alignment :
  124. (
  125. procalign : 8;
  126. loopalign : 8;
  127. jumpalign : 0;
  128. constalignmin : 0;
  129. constalignmax : 8;
  130. varalignmin : 0;
  131. varalignmax : 8;
  132. localalignmin : 8;
  133. localalignmax : 8;
  134. recordalignmin : 0;
  135. recordalignmax : 8;
  136. maxCrecordalign : 16
  137. );
  138. first_parm_offset : 16;
  139. stacksize : 262144;
  140. DllScanSupported:true;
  141. use_function_relative_addresses : true
  142. );
  143. system_arm_wince_info : tsysteminfo =
  144. (
  145. system : system_arm_wince;
  146. name : 'WinCE for ARM';
  147. shortname : 'WinCE';
  148. flags : [];
  149. cpu : cpu_arm;
  150. unit_env : '';
  151. extradefines : 'UNDER_CE';
  152. exeext : '.exe';
  153. defext : '.def';
  154. scriptext : '.bat';
  155. smartext : '.sl';
  156. unitext : '.ppu';
  157. unitlibext : '.ppl';
  158. asmext : '.s';
  159. objext : '.o';
  160. resext : '.rc';
  161. resobjext : '.or';
  162. sharedlibext : '.dll';
  163. staticlibext : '.a';
  164. staticlibprefix : 'libp';
  165. sharedlibprefix : '';
  166. sharedClibext : '.dll';
  167. staticClibext : '.a';
  168. staticClibprefix : 'lib';
  169. sharedClibprefix : '';
  170. p_ext_support : false;
  171. Cprefix : '_';
  172. newline : #13#10;
  173. dirsep : '\';
  174. files_case_relevent : true;
  175. assem : as_gas;
  176. assemextern : as_gas;
  177. link : nil;
  178. linkextern : nil;
  179. ar : ar_gnu_ar;
  180. res : res_gnu_wince_windres;
  181. script : script_dos;
  182. endian : endian_little;
  183. alignment :
  184. (
  185. procalign : 4;
  186. loopalign : 4;
  187. jumpalign : 0;
  188. constalignmin : 0;
  189. constalignmax : 4;
  190. varalignmin : 0;
  191. varalignmax : 4;
  192. localalignmin : 0;
  193. localalignmax : 4;
  194. recordalignmin : 0;
  195. recordalignmax : 2;
  196. maxCrecordalign : 4
  197. );
  198. first_parm_offset : 8;
  199. stacksize : 262144;
  200. DllScanSupported:false;
  201. use_function_relative_addresses : true
  202. );
  203. system_i386_wince_info : tsysteminfo =
  204. (
  205. system : system_i386_wince;
  206. name : 'WinCE for i386';
  207. shortname : 'WinCE';
  208. flags : [];
  209. cpu : cpu_i386;
  210. unit_env : '';
  211. extradefines : 'UNDER_CE';
  212. exeext : '.exe';
  213. defext : '.def';
  214. scriptext : '.bat';
  215. smartext : '.sl';
  216. unitext : '.ppu';
  217. unitlibext : '.ppl';
  218. asmext : '.s';
  219. objext : '.o';
  220. resext : '.rc';
  221. resobjext : '.or';
  222. sharedlibext : '.dll';
  223. staticlibext : '.a';
  224. staticlibprefix : 'libp';
  225. sharedlibprefix : '';
  226. sharedClibext : '.dll';
  227. staticClibext : '.a';
  228. staticClibprefix : 'lib';
  229. sharedClibprefix : '';
  230. p_ext_support : false;
  231. Cprefix : '_';
  232. newline : #13#10;
  233. dirsep : '\';
  234. files_case_relevent : true;
  235. assem : as_i386_pecoffwince;
  236. assemextern : as_gas;
  237. link : nil;
  238. linkextern : nil;
  239. ar : ar_gnu_ar;
  240. res : res_gnu_windres;
  241. script : script_dos;
  242. endian : endian_little;
  243. alignment :
  244. (
  245. procalign : 4;
  246. loopalign : 4;
  247. jumpalign : 0;
  248. constalignmin : 0;
  249. constalignmax : 4;
  250. varalignmin : 0;
  251. varalignmax : 4;
  252. localalignmin : 4;
  253. localalignmax : 4;
  254. recordalignmin : 0;
  255. recordalignmax : 4;
  256. maxCrecordalign : 16
  257. );
  258. first_parm_offset : 8;
  259. stacksize : 262144;
  260. DllScanSupported:true;
  261. use_function_relative_addresses : true
  262. );
  263. implementation
  264. initialization
  265. {$ifdef CPU86}
  266. {$ifdef WIN32}
  267. {$ifndef WDOSX}
  268. set_source_info(system_i386_win32_info);
  269. {$endif WDOSX}
  270. {$endif WIN32}
  271. {$ifdef WINCE}
  272. set_source_info(system_i386_wince_info);
  273. {$endif WINCE}
  274. {$endif CPU86}
  275. {$ifdef CPUX86_64}
  276. {$ifdef WIN64}
  277. {$ifndef WDOSX}
  278. set_source_info(system_x64_win64_info);
  279. {$endif WDOSX}
  280. {$endif WIN64}
  281. {$endif CPUX86_64}
  282. {$ifdef CPUARM}
  283. {$ifdef WINCE}
  284. set_source_info(system_arm_wince_info);
  285. {$endif WINCE}
  286. {$endif CPUARM}
  287. end.