i_win.pas 10.0 KB

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