i_os2.pas 3.5 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. {$i fpcdefs.inc}
  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,tf_files_case_aware,tf_use_8_3];
  37. cpu : cpu_i386;
  38. unit_env : 'OS2UNITS';
  39. extradefines : '';
  40. exeext : '.exe';
  41. defext : '.def';
  42. scriptext : '.cmd';
  43. smartext : '.sl';
  44. unitext : '.ppu';
  45. unitlibext : '.ppl';
  46. asmext : '.s';
  47. objext : '.o';
  48. resext : '.res';
  49. resobjext : '.or';
  50. sharedlibext : '.dll';
  51. staticlibext : '.a';
  52. staticlibprefix : '';
  53. sharedlibprefix : '';
  54. sharedClibext : '.dll';
  55. staticClibext : '.a';
  56. staticClibprefix : '';
  57. sharedClibprefix : '';
  58. Cprefix : '_';
  59. newline : #13#10;
  60. dirsep : '\';
  61. assem : as_i386_as_aout;
  62. assemextern : as_i386_as_aout;
  63. link : nil;
  64. linkextern : nil;
  65. ar : ar_gnu_ar;
  66. res : res_emxbind;
  67. dbg : dbg_stabs;
  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. abi : abi_default;
  88. );
  89. implementation
  90. initialization
  91. {$ifdef CPU86}
  92. {$ifdef os2}
  93. {$IFNDEF EMX}
  94. set_source_info(system_i386_os2_info);
  95. {$ENDIF EMX}
  96. {$IFDEF VER1_0}
  97. set_source_info(system_i386_os2_info);
  98. {$ENDIF VER1_0}
  99. {$endif os2}
  100. {$endif CPU86}
  101. end.