i_win.pas 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  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. {$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];
  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];
  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. cpu : cpu_arm;
  153. unit_env : '';
  154. extradefines : 'UNDER_CE;WINDOWS;UNICODE';
  155. exeext : '.exe';
  156. defext : '.def';
  157. scriptext : '.bat';
  158. smartext : '.sl';
  159. unitext : '.ppu';
  160. unitlibext : '.ppl';
  161. asmext : '.s';
  162. objext : '.o';
  163. resext : '.res';
  164. resobjext : '.or';
  165. sharedlibext : '.dll';
  166. staticlibext : '.a';
  167. staticlibprefix : 'libp';
  168. sharedlibprefix : '';
  169. sharedClibext : '.dll';
  170. staticClibext : '.a';
  171. staticClibprefix : 'lib';
  172. sharedClibprefix : '';
  173. Cprefix : '';
  174. newline : #13#10;
  175. dirsep : '\';
  176. assem : as_gas;
  177. assemextern : as_gas;
  178. link : nil;
  179. linkextern : nil;
  180. ar : ar_gnu_ar_scripted;
  181. res : res_gnu_wince_windres;
  182. dbg : dbg_stabs;
  183. script : script_dos;
  184. endian : endian_little;
  185. alignment :
  186. (
  187. procalign : 4;
  188. loopalign : 4;
  189. jumpalign : 0;
  190. constalignmin : 0;
  191. constalignmax : 4;
  192. varalignmin : 0;
  193. varalignmax : 4;
  194. localalignmin : 0;
  195. localalignmax : 4;
  196. recordalignmin : 0;
  197. recordalignmax : 4;
  198. maxCrecordalign : 4
  199. );
  200. first_parm_offset : 8;
  201. stacksize : 262144;
  202. abi : abi_default;
  203. );
  204. system_i386_wince_info : tsysteminfo =
  205. (
  206. system : system_i386_wince;
  207. name : 'WinCE for i386';
  208. shortname : 'WinCE';
  209. flags : [tf_files_case_aware,tf_use_function_relative_addresses
  210. {,tf_winlikewidestring},tf_smartlink_sections,tf_no_pic_supported];
  211. cpu : cpu_i386;
  212. unit_env : '';
  213. extradefines : 'UNDER_CE;WINDOWS;UNICODE';
  214. exeext : '.exe';
  215. defext : '.def';
  216. scriptext : '.bat';
  217. smartext : '.sl';
  218. unitext : '.ppu';
  219. unitlibext : '.ppl';
  220. asmext : '.s';
  221. objext : '.o';
  222. resext : '.res';
  223. resobjext : '.or';
  224. sharedlibext : '.dll';
  225. staticlibext : '.a';
  226. staticlibprefix : 'libp';
  227. sharedlibprefix : '';
  228. sharedClibext : '.dll';
  229. staticClibext : '.a';
  230. staticClibprefix : 'lib';
  231. sharedClibprefix : '';
  232. Cprefix : '_';
  233. newline : #13#10;
  234. dirsep : '\';
  235. assem : as_i386_pecoffwince;
  236. assemextern : as_gas;
  237. link : nil;
  238. linkextern : nil;
  239. ar : ar_gnu_ar_scripted;
  240. res : res_gnu_windres;
  241. dbg : dbg_stabs;
  242. script : script_dos;
  243. endian : endian_little;
  244. alignment :
  245. (
  246. procalign : 4;
  247. loopalign : 4;
  248. jumpalign : 0;
  249. constalignmin : 0;
  250. constalignmax : 4;
  251. varalignmin : 0;
  252. varalignmax : 4;
  253. localalignmin : 4;
  254. localalignmax : 4;
  255. recordalignmin : 0;
  256. recordalignmax : 4;
  257. maxCrecordalign : 16
  258. );
  259. first_parm_offset : 8;
  260. stacksize : 262144;
  261. abi : abi_default;
  262. );
  263. implementation
  264. initialization
  265. {$ifdef CPU86}
  266. {$ifdef WIN32}
  267. {$ifndef WDOSX}
  268. set_source_info(system_i386_win32_info);
  269. {$endif WDOSX}
  270. {$endif WIN32}
  271. {$ifdef WINCE}
  272. set_source_info(system_i386_wince_info);
  273. {$endif WINCE}
  274. {$endif CPU86}
  275. {$ifdef CPUX86_64}
  276. {$ifdef WIN64}
  277. {$ifndef WDOSX}
  278. set_source_info(system_x64_win64_info);
  279. {$endif WDOSX}
  280. {$endif WIN64}
  281. {$endif CPUX86_64}
  282. {$ifdef CPUARM}
  283. {$ifdef WINCE}
  284. set_source_info(system_arm_wince_info);
  285. {$endif WINCE}
  286. {$endif CPUARM}
  287. end.