i_win.pas 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. res_gnu_windres_info : tresinfo =
  24. (
  25. id : res_gnu_windres;
  26. resbin : 'windres';
  27. rescmd : '--include $INC -O coff -o $OBJ $RES'
  28. );
  29. const
  30. system_i386_win32_info : tsysteminfo =
  31. (
  32. system : system_i386_WIN32;
  33. name : 'Win32 for i386';
  34. shortname : 'Win32';
  35. flags : [];
  36. cpu : cpu_i386;
  37. unit_env : 'WIN32UNITS';
  38. extradefines : 'MSWINDOWS';
  39. exeext : '.exe';
  40. defext : '.def';
  41. scriptext : '.bat';
  42. smartext : '.sl';
  43. unitext : '.ppu';
  44. unitlibext : '.ppl';
  45. asmext : '.s';
  46. objext : '.o';
  47. resext : '.rc';
  48. resobjext : '.or';
  49. sharedlibext : '.dll';
  50. staticlibext : '.a';
  51. staticlibprefix : 'libp';
  52. sharedlibprefix : '';
  53. sharedClibext : '.dll';
  54. staticClibext : '.a';
  55. staticClibprefix : 'lib';
  56. sharedClibprefix : '';
  57. p_ext_support : false;
  58. Cprefix : '_';
  59. newline : #13#10;
  60. dirsep : '\';
  61. files_case_relevent : true;
  62. assem : as_i386_pecoff;
  63. assemextern : as_gas;
  64. link : nil;
  65. linkextern : nil;
  66. ar : ar_gnu_ar;
  67. res : res_gnu_windres;
  68. script : script_dos;
  69. endian : endian_little;
  70. alignment :
  71. (
  72. procalign : 4;
  73. loopalign : 4;
  74. jumpalign : 0;
  75. constalignmin : 0;
  76. constalignmax : 4;
  77. varalignmin : 0;
  78. varalignmax : 4;
  79. localalignmin : 4;
  80. localalignmax : 4;
  81. recordalignmin : 0;
  82. recordalignmax : 4;
  83. maxCrecordalign : 16
  84. );
  85. first_parm_offset : 8;
  86. stacksize : 262144;
  87. DllScanSupported:true;
  88. use_function_relative_addresses : true
  89. );
  90. system_x64_win64_info : tsysteminfo =
  91. (
  92. system : system_x86_64_win64;
  93. name : 'Win64 for x64';
  94. shortname : 'Win64';
  95. flags : [];
  96. cpu : cpu_x86_64;
  97. unit_env : 'WIN64UNITS';
  98. extradefines : 'MSWINDOWS';
  99. exeext : '.exe';
  100. defext : '.def';
  101. scriptext : '.bat';
  102. smartext : '.sl';
  103. unitext : '.ppu';
  104. unitlibext : '.ppl';
  105. asmext : '.s';
  106. objext : '.o';
  107. resext : '.rc';
  108. resobjext : '.or';
  109. sharedlibext : '.dll';
  110. staticlibext : '.a';
  111. staticlibprefix : 'libp';
  112. sharedlibprefix : '';
  113. sharedClibext : '.dll';
  114. staticClibext : '.a';
  115. staticClibprefix : 'lib';
  116. sharedClibprefix : '';
  117. p_ext_support : false;
  118. Cprefix : '_';
  119. newline : #13#10;
  120. dirsep : '\';
  121. files_case_relevent : true;
  122. assem : as_x86_64_pecoff;
  123. assemextern : as_x86_64_masm;
  124. link : nil;
  125. linkextern : nil;
  126. ar : ar_gnu_ar;
  127. res : res_gnu_windres;
  128. script : script_dos;
  129. endian : endian_little;
  130. alignment :
  131. (
  132. procalign : 8;
  133. loopalign : 8;
  134. jumpalign : 0;
  135. constalignmin : 0;
  136. constalignmax : 8;
  137. varalignmin : 0;
  138. varalignmax : 8;
  139. localalignmin : 8;
  140. localalignmax : 8;
  141. recordalignmin : 0;
  142. recordalignmax : 8;
  143. maxCrecordalign : 16
  144. );
  145. first_parm_offset : 16;
  146. stacksize : 262144;
  147. DllScanSupported:true;
  148. use_function_relative_addresses : true
  149. );
  150. implementation
  151. initialization
  152. {$ifdef CPU86}
  153. {$ifdef WIN32}
  154. {$ifndef WDOSX}
  155. set_source_info(system_i386_win32_info);
  156. {$endif WDOSX}
  157. {$endif WIN32}
  158. {$endif CPU86}
  159. {$ifdef CPUX86_64}
  160. {$ifdef WIN64}
  161. {$ifndef WDOSX}
  162. set_source_info(system_x64_win64_info);
  163. {$endif WDOSX}
  164. {$endif WIN64}
  165. {$endif CPUX86_64}
  166. end.