i_win16.pas 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. Copyright (c) 1998-2002 by Peter Vreman
  3. This unit implements support information structures for Win16
  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_win16;
  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_win16_info : tsysteminfo =
  31. (
  32. system : system_i8086_win16;
  33. name : 'Win16 for x86';
  34. shortname : 'Win16';
  35. flags : [tf_use_8_3,
  36. {$ifdef I8086_SMARTLINK_SECTIONS}
  37. tf_smartlink_sections,
  38. {$else I8086_SMARTLINK_SECTIONS}
  39. tf_smartlink_library,
  40. tf_no_objectfiles_when_smartlinking,
  41. {$endif I8086_SMARTLINK_SECTIONS}
  42. tf_cld,tf_no_generic_stackcheck,tf_emit_stklen,
  43. tf_x86_far_procs_push_odd_bp];
  44. cpu : cpu_i8086;
  45. unit_env : 'WIN16UNITS';
  46. extradefines : 'MSWINDOWS;WINDOWS';
  47. exeext : '.exe';
  48. defext : '.def';
  49. scriptext : '.bat';
  50. smartext : '.sl';
  51. unitext : '.ppu';
  52. unitlibext : '.ppl';
  53. asmext : '.s';
  54. objext : '.o';
  55. resext : '.res';
  56. resobjext : '.or';
  57. sharedlibext : '';
  58. staticlibext : '.a';
  59. staticlibprefix : '';
  60. sharedlibprefix : '';
  61. sharedClibext : '.dll';
  62. staticClibext : '.a';
  63. staticClibprefix : 'lib';
  64. sharedClibprefix : '';
  65. importlibprefix : 'libimp';
  66. importlibext : '.a';
  67. Cprefix : '_';
  68. newline : #13#10;
  69. dirsep : '\';
  70. assem : as_i8086_omf;
  71. assemextern : as_i8086_nasmobj;
  72. link : ld_win16;
  73. linkextern : ld_win16;
  74. {$ifdef USE_SCRIPTED_WLIB}
  75. ar : ar_watcom_wlib_omf_scripted;
  76. {$else}
  77. ar : ar_watcom_wlib_omf;
  78. {$endif}
  79. res : res_none;
  80. dbg : dbg_dwarf2;
  81. script : script_dos;
  82. endian : endian_little;
  83. alignment :
  84. (
  85. procalign : 1;
  86. loopalign : 1;
  87. jumpalign : 0;
  88. constalignmin : 0;
  89. constalignmax : 2;
  90. varalignmin : 0;
  91. varalignmax : 2;
  92. localalignmin : 0;
  93. localalignmax : 2;
  94. recordalignmin : 0;
  95. recordalignmax : 2;
  96. maxCrecordalign : 2
  97. );
  98. first_parm_offset : 4;
  99. stacksize : 0;
  100. stackalign : 2;
  101. abi : abi_default;
  102. llvmdatalayout : 'todo';
  103. );
  104. implementation
  105. initialization
  106. {$ifdef cpu8086}
  107. {$ifdef win16}
  108. set_source_info(system_i8086_win16_info);
  109. {$endif win16}
  110. {$endif cpu8086}
  111. end.