i_win32.pas 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Peter Vreman
  4. This unit implements support information structures for win32
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. { This unit implements support information structures for win32. }
  19. unit i_win32;
  20. interface
  21. uses
  22. systems;
  23. const
  24. res_gnu_windres_info : tresinfo =
  25. (
  26. id : res_gnu_windres;
  27. resbin : 'windres';
  28. rescmd : '--include $INC -O coff -o $OBJ $RES'
  29. );
  30. const
  31. system_i386_win32_info : tsysteminfo =
  32. (
  33. system : system_i386_WIN32;
  34. name : 'Win32 for i386';
  35. shortname : 'Win32';
  36. flags : [];
  37. cpu : cpu_i386;
  38. unit_env : 'WIN32UNITS';
  39. extradefines : 'MSWINDOWS';
  40. sourceext : '.pp';
  41. pasext : '.pas';
  42. exeext : '.exe';
  43. defext : '.def';
  44. scriptext : '.bat';
  45. smartext : '.sl';
  46. unitext : '.ppu';
  47. unitlibext : '.ppl';
  48. asmext : '.s';
  49. objext : '.o';
  50. resext : '.rc';
  51. resobjext : '.or';
  52. sharedlibext : '.dll';
  53. staticlibext : '.a';
  54. staticlibprefix : 'libp';
  55. sharedlibprefix : '';
  56. sharedClibext : '.dll';
  57. staticClibext : '.a';
  58. staticClibprefix : 'lib';
  59. sharedClibprefix : '';
  60. Cprefix : '_';
  61. newline : #13#10;
  62. dirsep : '\';
  63. files_case_relevent : false;
  64. assem : as_i386_pecoff;
  65. assemextern : as_gas;
  66. link : nil;
  67. linkextern : nil;
  68. ar : ar_gnu_ar;
  69. res : res_gnu_windres;
  70. script : script_dos;
  71. endian : endian_little;
  72. alignment :
  73. (
  74. procalign : 4;
  75. loopalign : 4;
  76. jumpalign : 0;
  77. constalignmin : 0;
  78. constalignmax : 4;
  79. varalignmin : 0;
  80. varalignmax : 4;
  81. localalignmin : 0;
  82. localalignmax : 4;
  83. recordalignmin : 0;
  84. recordalignmax : 2;
  85. maxCrecordalign : 16
  86. );
  87. first_parm_offset : 8;
  88. heapsize : 256*1024;
  89. stacksize : 262144;
  90. DllScanSupported:true;
  91. use_function_relative_addresses : true
  92. );
  93. implementation
  94. initialization
  95. {$ifdef CPU86}
  96. {$ifdef WIN32}
  97. {$ifndef WDOSX}
  98. set_source_info(system_i386_win32_info);
  99. {$endif WDOSX}
  100. {$endif WIN32}
  101. {$endif CPU86}
  102. end.
  103. {
  104. $Log$
  105. Revision 1.5 2003-10-03 22:09:49 peter
  106. * removed paraalign
  107. Revision 1.4 2003/10/02 21:17:08 peter
  108. * use as,ld,ar instead of asw,ldw,arw for win32
  109. Revision 1.3 2003/03/23 23:31:54 hajny
  110. + platform extensions unified
  111. Revision 1.2 2002/09/07 15:25:15 peter
  112. * old logs removed and tabs fixed
  113. Revision 1.1 2002/09/06 15:03:51 carl
  114. * moved files to systems directory
  115. Revision 1.2 2002/08/12 15:08:39 carl
  116. + stab register indexes for powerpc (moved from gdb to cpubase)
  117. + tprocessor enumeration moved to cpuinfo
  118. + linker in target_info is now a class
  119. * many many updates for m68k (will soon start to compile)
  120. - removed some ifdef or correct them for correct cpu
  121. Revision 1.1 2002/07/26 21:15:38 florian
  122. * rewrote the system handling
  123. }