KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Article: Q64424
Product(s): See article
Version(s): 7.00 7.10 | 7.00 7.10
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | | mspl13_basic
Last Modified: 6-AUG-1990

In Microsoft BASIC Professional Development System (PDS) version 7.00
for MS-DOS and MS OS/2, the BC /Fs (Far Strings) option forces the
compiler to also perform a /S. If you use many quoted strings in your
program, this BC /S option places extra overhead in the .OBJ file
that could (in some cases) overload the linker and give a "Stack plus
data exceed 64K" error (L2041) at LINK time. Compiling without /Fs
(using near strings) will not force /S, and the program may then LINK
without the L2041 error.

BASIC PDS version 7.10 is enhanced so that the BC /Fs option no longer
forces an automatic /S option. This enhancement can help avoid the
"Stack plus data exceed 64K" error as in the above case when you need
to compile with the /Fs option.

BC /S Option
------------

The BC /S option helps you only at compile time. You only need to use
the BC /S option when you get an "Out of memory" error message at
compile time due to too many quoted string constants in the source
program. Compiling with BC /S increases DGROUP usage at link time, in
some cases contributing to the cause of the linker error "Stack plus
data exceed 64K." Compiling with BC /S normally does not affect the
size or speed of the final linked .EXE program.

BC /Fs Option
-------------

The BC /Fs (Far Strings) option gives you more space for
variable-length string variables at the cost of increasing the size
and slowing the speed of .EXE programs.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.