i_win.pas 11 KB

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