i_win.pas 10 KB

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