i_win.pas 10 KB

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