i_os2.pas 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Peter Vreman
  4. This unit implements support information structures for OS/2
  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 OS/2. }
  19. unit i_os2;
  20. interface
  21. uses
  22. systems;
  23. const
  24. res_emxbind_info : tresinfo =
  25. (
  26. id : res_emxbind;
  27. resbin : 'emxbind';
  28. rescmd : '-b -r $RES $OBJ'
  29. (* Not really used - see TLinkeros2.SetDefaultInfo in t_os2.pas. *)
  30. );
  31. system_i386_os2_info : tsysteminfo =
  32. (
  33. system : system_i386_OS2;
  34. name : 'OS/2';
  35. shortname : 'OS2';
  36. flags : [tf_need_export];
  37. cpu : cpu_i386;
  38. unit_env : 'OS2UNITS';
  39. extradefines : '';
  40. sourceext : '.pas';
  41. pasext : '.pp';
  42. exeext : '.exe';
  43. defext : '.def';
  44. scriptext : '.cmd';
  45. smartext : '.sl';
  46. unitext : '.ppu';
  47. unitlibext : '.ppl';
  48. asmext : '.s';
  49. objext : '.o';
  50. resext : '.res';
  51. resobjext : '.or';
  52. sharedlibext : '.dll';
  53. staticlibext : '.a';
  54. staticlibprefix : '';
  55. sharedlibprefix : '';
  56. sharedClibext : '.dll';
  57. staticClibext : '.a';
  58. staticClibprefix : '';
  59. sharedClibprefix : '';
  60. Cprefix : '_';
  61. newline : #13#10;
  62. dirsep : '\';
  63. files_case_relevent : false;
  64. assem : as_i386_as_aout;
  65. assemextern : as_i386_as_aout;
  66. link : nil;
  67. linkextern : nil;
  68. ar : ar_gnu_ar;
  69. res : res_emxbind;
  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 : 4
  86. );
  87. first_parm_offset : 8;
  88. heapsize : 256*1024;
  89. stacksize : 256*1024;
  90. DllScanSupported:true;
  91. use_function_relative_addresses : false
  92. );
  93. implementation
  94. initialization
  95. {$ifdef CPU86}
  96. {$ifdef os2}
  97. {$IFNDEF EMX}
  98. set_source_info(system_i386_os2_info);
  99. {$ENDIF EMX}
  100. {$IFDEF VER1_0}
  101. set_source_info(system_i386_os2_info);
  102. {$ENDIF VER1_0}
  103. {$endif os2}
  104. {$endif CPU86}
  105. end.
  106. {
  107. $Log$
  108. Revision 1.3 2003-10-03 22:09:49 peter
  109. * removed paraalign
  110. Revision 1.2 2003/03/23 23:31:54 hajny
  111. + platform extensions unified
  112. Revision 1.1 2002/09/06 15:03:51 carl
  113. * moved files to systems directory
  114. Revision 1.2 2002/08/12 15:08:39 carl
  115. + stab register indexes for powerpc (moved from gdb to cpubase)
  116. + tprocessor enumeration moved to cpuinfo
  117. + linker in target_info is now a class
  118. * many many updates for m68k (will soon start to compile)
  119. - removed some ifdef or correct them for correct cpu
  120. Revision 1.1 2002/07/26 21:15:38 florian
  121. * rewrote the system handling
  122. }