i_win.pas 11 KB

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