[net.micro.amiga] Amiga BASIC programs > 40k bytes

bruceb@amiga.UUCP (Bruce Barrett) (02/13/86)

Oops!  It seems I put some bad data out on the net last week.  I do
try to avoid this sort of thing but being human...

HOW TO MAKE LARGE Amiga BASIC PROGRAMS:

On a 512k Amiga use the commands:
	CLEAR ,2000
	CLEAR ,140000

The first command throws away a large part of the 25000 bytes BASIC
reserves for text and data.  This is done in the hopes that this unused
memory will "join-up" with other unused memory in the system and make
one big pile (unfragmented).  The second command actually grabs large 
ammounts of space for your BASIC program.

If you are trying to do this automatically you could construct a 3 
line program that issues the clear statment and CHAINs to the "real"
program.

I've tried this on a 114k program that was mostly remark statments.
It works.

--Bruce Barrett