i_msdos.pas 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {
  2. Copyright (c) 1998-2002 by Peter Vreman
  3. This unit implements support information structures for MS-DOS
  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 go32v2. }
  18. unit i_msdos;
  19. {$i fpcdefs.inc}
  20. {$ifdef go32v2}
  21. { As wlib uses a different Dos-Extender, long-command line
  22. encoding for DJGPP does not work here.
  23. Put all inside a script file instead }
  24. {$define USE_SCRIPTED_WLIB}
  25. {$endif}
  26. interface
  27. uses
  28. systems;
  29. const
  30. system_i8086_msdos_info : tsysteminfo =
  31. (
  32. system : system_i8086_msdos;
  33. name : 'MS-DOS 16-bit real mode';
  34. shortname : 'MSDOS';
  35. flags : [tf_use_8_3,tf_smartlink_library,tf_smartlink_sections,
  36. tf_no_objectfiles_when_smartlinking,tf_cld];
  37. cpu : cpu_i8086;
  38. unit_env : 'MSDOSUNITS';
  39. extradefines : '';
  40. exeext : '.exe';
  41. defext : '.def';
  42. scriptext : '.bat';
  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 : 'lib';
  57. sharedClibprefix : '';
  58. importlibprefix : '';
  59. importlibext : '.al';
  60. Cprefix : '_';
  61. newline : #13#10;
  62. dirsep : '\';
  63. assem : as_i8086_nasmobj;
  64. assemextern : as_i8086_nasmobj;
  65. link : ld_none;
  66. linkextern : ld_msdos;
  67. {$ifdef USE_SCRIPTED_WLIB}
  68. ar : ar_watcom_wlib_omf_scripted;
  69. {$else}
  70. ar : ar_watcom_wlib_omf;
  71. {$endif}
  72. res : res_none;
  73. dbg : dbg_stabs;
  74. script : script_dos;
  75. endian : endian_little;
  76. alignment :
  77. (
  78. procalign : 2;
  79. loopalign : 2;
  80. jumpalign : 0;
  81. constalignmin : 0;
  82. constalignmax : 2;
  83. varalignmin : 0;
  84. varalignmax : 2;
  85. localalignmin : 0;
  86. localalignmax : 2;
  87. recordalignmin : 0;
  88. recordalignmax : 2;
  89. maxCrecordalign : 2
  90. );
  91. first_parm_offset : 4;
  92. stacksize : 0;
  93. stackalign : 2;
  94. abi : abi_default;
  95. );
  96. implementation
  97. initialization
  98. {$ifdef cpu8086}
  99. {$ifdef dos16}
  100. set_source_info(system_i8086_msdos_info);
  101. {$endif dos16}
  102. {$endif cpu8086}
  103. end.