i_os2.pas 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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_files_case_aware,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. Cprefix : '_';
  58. newline : #13#10;
  59. dirsep : '\';
  60. assem : as_i386_as_aout;
  61. assemextern : as_i386_as_aout;
  62. link : nil;
  63. linkextern : nil;
  64. ar : ar_gnu_ar;
  65. res : res_emxbind;
  66. dbg : dbg_stabs;
  67. script : script_dos;
  68. endian : endian_little;
  69. alignment :
  70. (
  71. procalign : 4;
  72. loopalign : 4;
  73. jumpalign : 0;
  74. constalignmin : 0;
  75. constalignmax : 4;
  76. varalignmin : 0;
  77. varalignmax : 4;
  78. localalignmin : 0;
  79. localalignmax : 4;
  80. recordalignmin : 0;
  81. recordalignmax : 2;
  82. maxCrecordalign : 4
  83. );
  84. first_parm_offset : 8;
  85. stacksize : 256*1024;
  86. abi : abi_default;
  87. );
  88. implementation
  89. initialization
  90. {$ifdef CPU86}
  91. {$ifdef os2}
  92. {$IFNDEF EMX}
  93. set_source_info(system_i386_os2_info);
  94. {$ENDIF EMX}
  95. {$IFDEF VER1_0}
  96. set_source_info(system_i386_os2_info);
  97. {$ENDIF VER1_0}
  98. {$endif os2}
  99. {$endif CPU86}
  100. end.