LB Booster
« Memory limit »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:52am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Memory limit  (Read 294 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Memory limit
« Thread started on: Mar 23rd, 2014, 12:00am »

LBB's (v2.53) memory limit is similar to that of LB 4.04. For example in both cases a numeric array with 8 million elements can be successfully created but one with 10 million elements cannot (LBB reports a DIM space error and LB 4.04 reports a system primitive failed error).

However in LBB there is a simple way of overcoming the limit on the size of an array: use REDIM rather than DIM! If you use REDIM you can create an array with 100 million elements or more, if you have sufficient RAM:

Code:
    redim array(100000000) 

Richard.
« Last Edit: Mar 23rd, 2014, 10:50am by Richard Russell » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls