mikaelpatel / Arduino-Shell

RPN Postscript/Forth Command Shell for Arduino
19 stars 5 forks source link

Enhance: Add dictionary in PROGMEM #42

Closed mikaelpatel closed 8 years ago

mikaelpatel commented 8 years ago

The current dictionary is in EEPROM. A possible extension is to add an application dictionary fully in PROGMEM. There could actually be several dictionaries.

Increasing the number of entries will require a much faster lookup (i.e. cache).

mikaelpatel commented 8 years ago

Application scripts defined in sketch with Shell.set(name, script) should be replaced by a dictionary in PROGMEM. Supporting macros are needed together with dictionary data type and template or constructor parameter.

mikaelpatel commented 8 years ago

Please see commit https://github.com/mikaelpatel/Arduino-Shell/commit/874fba8b5a5246e2a0d785ae277959a288d913f3.