i_win.pas 11 KB

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