Re: [Flashforth-devel] compiling for 18F2xK22
Brought to you by:
oh2aun
From: Mikael N. <mik...@pp...> - 2014-03-21 04:55:25
|
The rewrite you have to do is really small. 1. Change CON to CONSTANT The 5.0 CONSTANT is identical to the 3.8 CON The speed is the same. 2. Change 3.8 LEAVE to 5.0 ENDIT The 5.0 LEAVE is for DO LOOP 3. Change 3.8 ' WORD IS INT to 5.0 ' WORD 0 INT! That is all. Should not take more than 5 minutes. The 5.0 VARIABLE is faster. It generates the same code as CONSTANT and compiles the VARIABLE address as a inline literal. BR Mike On 03/21/2014 03:06 AM, craig bair wrote: > Actually, I didn't start using CON rather than CONSTANT until reading somebody's doc/commentary that con compiled code in while constant passed the value to a call... I'ld use it for urgent code when I needed speed more than space. Never got time to run down the actual implamentation, though. I haven't thoroughly dismembered a forth package since re-writing the 6502 forth core to run from the language card on an Apple ][ and extend the dictionary up from the top of the text screen memory (yeah, it's been a while...). I'll see if there are enough changes to warrant writing something to convert the old text files for the new version, but it'll be a least a month till I've got time to turn around to sneeze... Love it on the Pic18 XLP cores, though! "Very tasty that, Mr. Pepperman." > > > Hack away, > craig bair > > ...averaging may or may not help clarify data. > If Bill Gates walks into a bar, > the average patron becomes a millionaire... > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > |