i_win.pas 11 KB

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