maccasoft / propeller-vt100-terminal

ANSI / VT-100 Terminal emulator for Parallax Propeller microcontroller with VGA and USB support
47 stars 9 forks source link

Build issue: Object exceeds runtime memory limit by 59 longs. #4

Open thedrip opened 4 years ago

thedrip commented 4 years ago

When building the project using the default .spin files and latest (1.00.78 2016) version of OpenSpin I receive the following error,

F:\Documents\6502\vt100>openspin -b -u vt100.spin Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor. Version 1.00.78 Compiled on Jan 16 2016 15:37:47 Compiling... vt100.spin |-usb-fs-host.spin |-com.serial.spin |-waitvid.80x25.nine.driver.spin |-generic9x16-4font.spin |-keyboard.spin |-i2c.spin vt100.spin : error : Object exceeds runtime memory limit by 59 longs.

thedrip commented 4 years ago

I was able to correct this issue by adding -M 65536 to the command line.

Openspin performs the -u optimization after the memory limit checks.

By forced the maximum size to be 64K instead 32K, the code passes the memory limit checks and then is optimized below the 32K limitation of the serial EEPROM.

I know it's not usual to open and close your own issue so quickly, I wanted to share in case future users have the same issue.

F:\Documents\6502\vt100>openspin -b -u -M 65536 vt100.spin Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor. Version 1.00.78 Compiled on Jan 16 2016 15:37:47 Compiling... vt100.spin |-usb-fs-host.spin |-com.serial.spin |-waitvid.80x25.nine.driver.spin |-generic9x16-4font.spin |-keyboard.spin |-i2c.spin Done. |-usb-fs-host.spin |-com.serial.spin |-waitvid.80x25.nine.driver.spin |-generic9x16-4font.spin |-keyboard.spin |-i2c.spin Done. Program size is 23224 bytes

maccasoft commented 4 years ago

I'm using the most recent version 1.00.81 compiled from sources, available from my web site https://www.maccasoft.com/downloads/

thedrip commented 4 years ago

1.00.81 works a treat, too bad they had an old version for download on the official site.

Thank you