i_win.pas 10.0 KB

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