i_win.pas 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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. dbg : dbg_stabs;
  62. script : script_dos;
  63. endian : endian_little;
  64. alignment :
  65. (
  66. procalign : 16;
  67. loopalign : 4;
  68. jumpalign : 0;
  69. constalignmin : 0;
  70. constalignmax : 16;
  71. varalignmin : 0;
  72. varalignmax : 16;
  73. localalignmin : 4;
  74. localalignmax : 8;
  75. recordalignmin : 0;
  76. recordalignmax : 4;
  77. maxCrecordalign : 16
  78. );
  79. first_parm_offset : 8;
  80. stacksize : 262144;
  81. DllScanSupported:true;
  82. use_function_relative_addresses : true
  83. );
  84. system_x64_win64_info : tsysteminfo =
  85. (
  86. system : system_x86_64_win64;
  87. name : 'Win64 for x64';
  88. shortname : 'Win64';
  89. flags : [];
  90. cpu : cpu_x86_64;
  91. unit_env : 'WIN64UNITS';
  92. extradefines : 'MSWINDOWS';
  93. exeext : '.exe';
  94. defext : '.def';
  95. scriptext : '.bat';
  96. smartext : '.sl';
  97. unitext : '.ppu';
  98. unitlibext : '.ppl';
  99. asmext : '.s';
  100. objext : '.o';
  101. resext : '.rc';
  102. resobjext : '.or';
  103. sharedlibext : '.dll';
  104. staticlibext : '.a';
  105. staticlibprefix : 'libp';
  106. sharedlibprefix : '';
  107. sharedClibext : '.dll';
  108. staticClibext : '.a';
  109. staticClibprefix : 'lib';
  110. sharedClibprefix : '';
  111. p_ext_support : false;
  112. Cprefix : '_';
  113. newline : #13#10;
  114. dirsep : '\';
  115. files_case_relevent : true;
  116. assem : as_x86_64_pecoff;
  117. assemextern : as_x86_64_masm;
  118. link : nil;
  119. linkextern : nil;
  120. ar : ar_gnu_ar;
  121. res : res_gnu_windres;
  122. dbg : dbg_stabs;
  123. script : script_dos;
  124. endian : endian_little;
  125. alignment :
  126. (
  127. procalign : 16;
  128. loopalign : 8;
  129. jumpalign : 0;
  130. constalignmin : 0;
  131. constalignmax : 16;
  132. varalignmin : 0;
  133. varalignmax : 16;
  134. localalignmin : 8;
  135. localalignmax : 16;
  136. recordalignmin : 0;
  137. recordalignmax : 8;
  138. maxCrecordalign : 16
  139. );
  140. first_parm_offset : 16;
  141. stacksize : 262144;
  142. DllScanSupported:true;
  143. use_function_relative_addresses : true
  144. );
  145. system_arm_wince_info : tsysteminfo =
  146. (
  147. system : system_arm_wince;
  148. name : 'WinCE for ARM';
  149. shortname : 'WinCE';
  150. flags : [];
  151. cpu : cpu_arm;
  152. unit_env : '';
  153. extradefines : 'UNDER_CE';
  154. exeext : '.exe';
  155. defext : '.def';
  156. scriptext : '.bat';
  157. smartext : '.sl';
  158. unitext : '.ppu';
  159. unitlibext : '.ppl';
  160. asmext : '.s';
  161. objext : '.o';
  162. resext : '.rc';
  163. resobjext : '.or';
  164. sharedlibext : '.dll';
  165. staticlibext : '.a';
  166. staticlibprefix : 'libp';
  167. sharedlibprefix : '';
  168. sharedClibext : '.dll';
  169. staticClibext : '.a';
  170. staticClibprefix : 'lib';
  171. sharedClibprefix : '';
  172. p_ext_support : false;
  173. Cprefix : '_';
  174. newline : #13#10;
  175. dirsep : '\';
  176. files_case_relevent : true;
  177. assem : as_gas;
  178. assemextern : as_gas;
  179. link : nil;
  180. linkextern : nil;
  181. ar : ar_gnu_ar;
  182. res : res_gnu_wince_windres;
  183. dbg : dbg_stabs;
  184. script : script_dos;
  185. endian : endian_little;
  186. alignment :
  187. (
  188. procalign : 4;
  189. loopalign : 4;
  190. jumpalign : 0;
  191. constalignmin : 0;
  192. constalignmax : 4;
  193. varalignmin : 0;
  194. varalignmax : 4;
  195. localalignmin : 0;
  196. localalignmax : 4;
  197. recordalignmin : 0;
  198. recordalignmax : 2;
  199. maxCrecordalign : 4
  200. );
  201. first_parm_offset : 8;
  202. stacksize : 262144;
  203. DllScanSupported:false;
  204. use_function_relative_addresses : true
  205. );
  206. system_i386_wince_info : tsysteminfo =
  207. (
  208. system : system_i386_wince;
  209. name : 'WinCE for i386';
  210. shortname : 'WinCE';
  211. flags : [];
  212. cpu : cpu_i386;
  213. unit_env : '';
  214. extradefines : 'UNDER_CE';
  215. exeext : '.exe';
  216. defext : '.def';
  217. scriptext : '.bat';
  218. smartext : '.sl';
  219. unitext : '.ppu';
  220. unitlibext : '.ppl';
  221. asmext : '.s';
  222. objext : '.o';
  223. resext : '.rc';
  224. resobjext : '.or';
  225. sharedlibext : '.dll';
  226. staticlibext : '.a';
  227. staticlibprefix : 'libp';
  228. sharedlibprefix : '';
  229. sharedClibext : '.dll';
  230. staticClibext : '.a';
  231. staticClibprefix : 'lib';
  232. sharedClibprefix : '';
  233. p_ext_support : false;
  234. Cprefix : '_';
  235. newline : #13#10;
  236. dirsep : '\';
  237. files_case_relevent : true;
  238. assem : as_i386_pecoffwince;
  239. assemextern : as_gas;
  240. link : nil;
  241. linkextern : nil;
  242. ar : ar_gnu_ar;
  243. res : res_gnu_windres;
  244. dbg : dbg_stabs;
  245. script : script_dos;
  246. endian : endian_little;
  247. alignment :
  248. (
  249. procalign : 4;
  250. loopalign : 4;
  251. jumpalign : 0;
  252. constalignmin : 0;
  253. constalignmax : 4;
  254. varalignmin : 0;
  255. varalignmax : 4;
  256. localalignmin : 4;
  257. localalignmax : 4;
  258. recordalignmin : 0;
  259. recordalignmax : 4;
  260. maxCrecordalign : 16
  261. );
  262. first_parm_offset : 8;
  263. stacksize : 262144;
  264. DllScanSupported:true;
  265. use_function_relative_addresses : true
  266. );
  267. implementation
  268. initialization
  269. {$ifdef CPU86}
  270. {$ifdef WIN32}
  271. {$ifndef WDOSX}
  272. set_source_info(system_i386_win32_info);
  273. {$endif WDOSX}
  274. {$endif WIN32}
  275. {$ifdef WINCE}
  276. set_source_info(system_i386_wince_info);
  277. {$endif WINCE}
  278. {$endif CPU86}
  279. {$ifdef CPUX86_64}
  280. {$ifdef WIN64}
  281. {$ifndef WDOSX}
  282. set_source_info(system_x64_win64_info);
  283. {$endif WDOSX}
  284. {$endif WIN64}
  285. {$endif CPUX86_64}
  286. {$ifdef CPUARM}
  287. {$ifdef WINCE}
  288. set_source_info(system_arm_wince_info);
  289. {$endif WINCE}
  290. {$endif CPUARM}
  291. end.