ulisp icon indicating copy to clipboard operation
ulisp copied to clipboard

Reducing the footprint of AVR-Nano

Open eclab opened this issue 2 years ago • 2 comments

AVR-Nano leaves 1% program memory space :-( I understand it's a tight squeeze but am wondering what items could be jettisoned to make it a bit tighter to allow for other code to be there, and for Lisp code to be stored in PROGMEM. One obvious target would be the REPL and the Serial library...

eclab avatar Dec 04 '23 14:12 eclab

@eclab I'm currently working on a project for a client that I'm running on a hybrid of ulisp and cpp, and also needed some more flash space.

I've found a really nice way to do this is simply to comment out ulisp fn's I wouldn't be using out of the symbol table. The linker takes care of the rest during compilation.

Platformio has a nice tool that lets you see what is taking up flash and sort by size, so I used that to quickly make some large gains. fn_format off the top of my head was the biggest one, but there are several high yield ones in there.

devcarbon-com avatar Dec 20 '23 17:12 devcarbon-com

A good tip - thanks!

technoblogy avatar Dec 20 '23 17:12 technoblogy