From: Matthias T. <mt...@we...> - 2007-04-30 12:29:18
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Hans, >> > Do you have a tool that aids in translating Forth to Assembler, >> >> I don't _have_ such a tool, I _am_ that tool ;=) > > Given that the routines I need are really simple, maybe I can use you > as the tool? I wont recommend me for routine tasks. I'm buggy[1] and my overhead is pretty high since I tend to write scripts to assist me ;) > My mechanism may also fill the needs of others: I have > set up the necessary scripting that converts one or more forth files > (using "\ include" as syntax) to a hex file that can be flashed. The > source is flashed so that the last adress is right below the boot > block. Comments and while space are stripped. The compile-from-rom > forth program changes the input vectors so that characters are read > from ROM until the last byte below the boot block has been hit. Then, > the input vectors are set back to rx0/rx0?. I had quite a few uses for this io redirect, but yours is ingenious. > Together with my scripting mechanics (and the Forth file translated to > assembler), it will be possible to build a complete amforth system > from source without having to go round-trip to the target. That would be a host based compiler. Do you know the avr assembler from Daniel Kryzcena? (krue.net). It is written for gforth and he makes his avrforth with it. > It may even be good to add some more code so that the source can be > viewed on the target (in the tradition of making the source code > available to the "customer"). You drive the idea of a "stand-alone" system to it's limit, don't you? > For my FPGA application, I will propably put the source into the > serial flash and compile from there, but I first want to have this > running on a real AVR. What's wrong with your io redirect? Put the base system into whatever the flash is and let KEY read from eeprom, btw: do you want to publish this module? Bye Matthias [1] I found a stupid error in the interrupt system. For my atmegas timer0 now increases a variable with your settings for an hout by now... See svn trunk. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGNeEd9bEHdGEMFjMRAvWmAKDs1a68VzFdUc5/jwz5wg3CbPCKWwCgsQh3 w1LUgL67WNgR5j7rdjxiLco= =AKs+ -----END PGP SIGNATURE----- |