🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #209

Re: QBX Memory Problems

#209
From: chris biow
Date: Fri, 06 Nov 1992 23:25
34 lines
2100 bytes
In article <9211052103.AA07580@horton.jhuapl.edu> randy@horton.jhuapl.edu (Randall L. Schrickel NDM) writes:

>[QBX memory woes]

>I'm now spending all of my time trying to figure out this problem instead of
>writing and debugging new code!

Welcome to the big leagues. Until you've reached the point where most of
your time is spent trading off memory limits, you're not a REAL Quick 
Basic programmer.

Reread all of the manual discussions on QBX and BC memory handling 
at least fourteen times. Get all of the KnowledgeBase additions and
errata to the PDS manual (GEnie, CIS, or is there an FTP option?).
Then experiment wildly. Above all, remember that _any_ variable
length string array DIM/REDIM uses something like eight bytes per
array element in DGROUP. The only way to get out of this is dynamic
fixed length string arrays, which means that you lose most of BASIC's
string-handling advantages.

Finally, know that there are lots of odd, undocumented requirements
for QBX to run. I found that memory problems got tractable only 
after I went with a single QBX module. I then wrote a utility 
program to break up that muthuh-module into lots (28 at last count)
of modules for BC compilation and RTLINK overlaying.

If anybody is interested in that utility, please e-mail me. It saved
a programmer who was crying the blues on GEnie.
 
If your program is going to get 
big (> 20K lines, say), PDS may not be the system to use. 

I haven't ported my application over to QBDOS yet--it may be better.
At least string literals aren't in DGROUP.
Technical Details
Message-ID: <61805@mimsy.umd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!gmd.de!ira.uka.de!ira.uka.de!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!zaphod.mps.ohio-state.edu!uwm.edu!biosci!agate!ames!haven.umd.edu!mimsy!biow
References: <9211052103.AA07580@horton.jhuapl.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!gmd.de!ira.uka.de!ira.uka.de!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!zaphod.mps.ohio-state.edu!uwm.edu!biosci!agate!ames!haven.umd.edu!mimsy!biow
From: biow@cs.umd.edu (chris biow)
Newsgroups: alt.lang.basic
Subject: Re: QBX Memory Problems
Message-ID: <61805@mimsy.umd.edu>
Date: 6 Nov 92 23:25:51 GMT
References: <9211052103.AA07580@horton.jhuapl.edu>
Sender: news@mimsy.umd.edu
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Lines: 34