Quote:
> I am currently running some programs in QBasic that use fairly large
> arrays. I need to increase the array size, but I'm running into memory
> restraints. So my questions are:
> 1) Does QUICKBasic make better use of extended (expanded? I always forget
> which is which) memory?
QuickBASIC doesn't use expanded or extended memory at all.
Quote:
> I assume that I would automatically gain some
> extra array space since the program can be run in a compiled form, but is
> additional array space available without compiling?
Make sure your QBasic arrays are dynamic. (Add the '$DYNAMIC metacommand,
or dimension them with a variable rather than a constant). This will
allow you to use all available conventional memory for array storage.
You'll still be limited to 64k per array, though.
Compiled QuickBASIC programs have two advantages: The smaller executable
leaves more free conventional memory, and you can compile with the /AH
switch, which permits dynamic arrays to be larger than 64k (although it
slows down array access).
Note that you still can't have more than 32k elements in an array,
though, so integer arrays are still effectively limited to 64k. Arrays of
user-defined types must have elements whose size in bytes is a power of
two in order to exceed 128k.
Quote:
> 2) Can all QBasic programs be run in QUICKBasic without modification?
There are some very minor differences, but mostly, yes.
---
Glen Blankenship