i_win.pas 9.8 KB

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