Fasm 'Out of Memory' FIX

Miscellaneous Forums/Linux Discussion/Fasm 'Out of Memory' FIX

The blitzmax.com/Community/posts.php?topic=67478 link looks like its broken so here another explanation of what to do.

Copy the bmk file in BlitzMax/bin into a backup folder (or rename it)in case you mess up

Edit the file bmk_util.bmx located in the BlitzMax/src/bmk folder.

look for the Assemble function and edit this line of code for Linux

cmd$=CQuote(BlitzMaxPath()+"/bin/fasm")+" "+CQuote(src)+" "+CQuote(obj)

to read

cmd$=CQuote(BlitzMaxPath()+"/bin/fasm")+" -m 1048560 "+CQuote(src)+" "+CQuote(obj)


the -m switch is used to increase memory that fasm can use.

Compile the bmk.bmx file and copy the bmk program that has been created in BlitzMax/src/bmk into the BlitzMax/bin folder.

You will no longer get the "fasm 'Out of Memory'" error (unless you are compiling a very big file)

This aught to be stickied, this caust me out a few months back :)