|
From: <an...@ki...> - 2010-07-04 10:02:56
|
Interesting question. I am afraid my understanding is that when you marker you delete everything back to the marker. Other markers as well. Managing linked lists etc on microcontrolers with limited space can be problematic. You dont have the memory to reorganize the memory space to free up bits of space in the middle of lumps of good code. Who is to say that the next bit of code would fit that space ??? The technique then is to purge from the end of the list wherever that may be back to the marker. So for > bla bla -foo3 hello hello -foo2 happy happy -foo1 doing -foo2 would give you..... > bla bla -foo3 hello hello Doing -foo1 would be pointless. Doing -foo3 would give........ > bla bla Happy to be told I have got the wrong end of the stick though. Cheers Andy Kirby On 03/07/10 19:53, pito wrote: > Matthias, > I see the marker usage with sieve example. If you mark the set of words > with -foo2 where is the end of the marked area (as you may have X words > defined)? Is that the next new marker position? It means (wordlist): > > bla bla -foo3 hello hello -foo2 happy happy -foo1 > <-----------> <---------------> <---------------> the area of marker > > -foo2 > > bla bla -foo3 happy happy -foo1 > <-----------> <---------------> > > or > > bla bla -foo3 ...................happy happy -foo1 ?? > <-----------> <---------------> > > My understanding is it works like a "file system" so a deleted -foo will > create a free space for new words - am I right? > As I uploaded lot of stuff for my naive experiments and the word list > is now very long so the way how the list is maintained seems to be a > challenge.. > Pito > > ----- PŮVODNÍ ZPRÁVA ----- > Od: "Matthias Trute" <mt...@we...> > Komu: "Everything around amforth" <amf...@li...> > Předmět: Re: [Amforth-devel] Starting with amforth v4 > Datum: 3.7.2010 - 13:55:30 > >> Hi Pito, >> >>> My previous Q to the interactivity - so my understanding >>> is you may delete >>>> words from flash w/o burning new image. >> >> Just do a >> >> marker -foo >> : bar ; >> : baz bar ; >> ... use bar and baz and... >> >> now get rid of bar >> >> -foo >> >> and both bar/baz and -foo are gone. The only real difference >> from a >> users point of view is some planning with the -foo >> thing. Most of my >> source files define such markes... >> >>> However let us mind the atmel >>> flash and eeprom endurance.. >> >> I still use the very first atmegas for developing, >> they have seen >> versions pre-0.1 and still work. And replacing a DIP >> package is >> easy... >> >> Matthias > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Amforth-devel mailing list > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel > |