Pito.

> dict_appl.inc ...

This is my experience.

a) For a well defined board like butterfly and a limited project I  
put all my *.asm files in the words dictionary of its appl folder, e.g.:
   amforth-4.1/appl/avr-butterfly/words/*.asm
And dict_appl.inc includes all these *.asm files then.
So they are added on top of amforths core and options.

b) I have a project where 6 small boards of same type but with  
different assignment of tasks. Such a board has an atmega168 and 4  
triacs to switch 220V devices, 4 temperature sensor inputs, and 3  
leds. They run at different speeds (8MHz, 12Mhz, 20Mhz) for  
historical reasons. Some are older, some where added later.
This zoo got messed up while I was developing it the a) way.

So now I try this order:

- changes in amforth core which are the same for all devices stay in
    amforth-x.x/core/words
    They are included by amforth.asm as usual.

- Extensions of amforth used in all devices go to
    amforth-x.x/appl/<project>/words
    They are included running <project-x.asm> which includes  
amforth.asm that includes
    dict_appl.inc then, where all words of general use are included.
    So this is just the same as encouraged by the appl template in  
amforth.

- specific tasks for a device go to
    amforth-x.x/appl/<project>/<task-x>/words
    Now <project-x.asm> finaly - after having included amforth.asm -  
includes all
    specific task words by including one <task-x.inc>.
    This <task-x.inc> then includes all the words in ../<task-x>/words.

So I hope things work out now this way. :)

Michael




Am 18.09.2010 um 13:20 schrieb pito:

> Hi,
> this is a Q I'am carrying with me for a long time and therefore I
> would kindly ask you following:
> 1. there is a lot of various dict_x.inc. From time to time I have to
> add something somewhere. To be honest, I am not sure what I am
> doing, as I put required .asm simply into dict_appl.inc somewhere..
> 2. I saw some short description in the guide, but forget everything
> 3. Is there any hint or the way HOW to put everything into one BIG
> dict_big.inc, so I simple compile absolutely everything I may found
> in \core\words.. and maybe on other places? My atmega is soooo big,
> so I do not care about the space for at least 3 months..
> Thanks,
> Pito
>
>
> ---------------------------------------------------------------------- 
> --------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Amforth-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/amforth-devel


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Amforth-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to