i_win.pas 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. implementation
  91. initialization
  92. {$ifdef CPU86}
  93. {$ifdef WIN32}
  94. {$ifndef WDOSX}
  95. set_source_info(system_i386_win32_info);
  96. {$endif WDOSX}
  97. {$endif WIN32}
  98. {$endif CPU86}
  99. end.