i_os2.pas 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. Copyright (c) 1998-2002 by Peter Vreman
  3. This unit implements support information structures for OS/2
  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 OS/2. }
  18. unit i_os2;
  19. interface
  20. uses
  21. systems;
  22. const
  23. res_emxbind_info : tresinfo =
  24. (
  25. id : res_emxbind;
  26. resbin : 'emxbind';
  27. rescmd : '-b -r $RES $OBJ'
  28. (* Not really used - see TLinkeros2.SetDefaultInfo in t_os2.pas. *)
  29. );
  30. system_i386_os2_info : tsysteminfo =
  31. (
  32. system : system_i386_OS2;
  33. name : 'OS/2';
  34. shortname : 'OS2';
  35. flags : [tf_need_export,tf_use_8_3];
  36. cpu : cpu_i386;
  37. unit_env : 'OS2UNITS';
  38. extradefines : '';
  39. exeext : '.exe';
  40. defext : '.def';
  41. scriptext : '.cmd';
  42. smartext : '.sl';
  43. unitext : '.ppu';
  44. unitlibext : '.ppl';
  45. asmext : '.s';
  46. objext : '.o';
  47. resext : '.res';
  48. resobjext : '.or';
  49. sharedlibext : '.dll';
  50. staticlibext : '.a';
  51. staticlibprefix : '';
  52. sharedlibprefix : '';
  53. sharedClibext : '.dll';
  54. staticClibext : '.a';
  55. staticClibprefix : '';
  56. sharedClibprefix : '';
  57. p_ext_support : false;
  58. Cprefix : '_';
  59. newline : #13#10;
  60. dirsep : '\';
  61. files_case_relevent : false;
  62. assem : as_i386_as_aout;
  63. assemextern : as_i386_as_aout;
  64. link : nil;
  65. linkextern : nil;
  66. ar : ar_gnu_ar;
  67. res : res_emxbind;
  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 : 0;
  80. localalignmax : 4;
  81. recordalignmin : 0;
  82. recordalignmax : 2;
  83. maxCrecordalign : 4
  84. );
  85. first_parm_offset : 8;
  86. stacksize : 256*1024;
  87. DllScanSupported: false;
  88. use_function_relative_addresses : false
  89. );
  90. implementation
  91. initialization
  92. {$ifdef CPU86}
  93. {$ifdef os2}
  94. {$IFNDEF EMX}
  95. set_source_info(system_i386_os2_info);
  96. {$ENDIF EMX}
  97. {$IFDEF VER1_0}
  98. set_source_info(system_i386_os2_info);
  99. {$ENDIF VER1_0}
  100. {$endif os2}
  101. {$endif CPU86}
  102. end.