i_win.pas 11 KB

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