Hello Matthias & all, Here's something beyond me in Amforth, please help:
I wrote a table driven CRC-8 routine for short messages using any generating polynomial, see http://pastebin.com/1YtVdMeg (I didn't like the slow approach of lib/hardware/1wire-crc8.frt). The Flash look-up table, crc8tab, is created at compile time -- first forming 256 PAD bytes and then packing them into 128 Flash words. DOES> provides the run-time lookup convenience. My question is simple: How can I reclaim the Flash memory of the crc8_msb_table word itself? (1) Our Tools Ext don't include FORGET. (2) I could use Core Ext MARKER if we had a deferred facility of sort. I.e., create a deferred table and fill it using a transient crc8_msb_table (which MARKER would afterwards help to remove). Among Forth main strengths is the ability to change itself at run-time (aka "reflection"). Can we apply it without the penalty of accumulating redundant code? Thanks, Enoch. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel