On Sun, Mar 30, 2008 at 07:30:31AM -0400, Peter Todd wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sun, Mar 30, 2008 at 12:05:56PM +0200, Wouter van Ooijen wrote: > > > Compiler writing 'eh? Where do you end up doing that? > > > > At home :) > > > > But I have to admit that I have not done much in that area since the old > > Jal (the new Jal is not my work). > > Ahh, cool. I wrote a compiler for a made up C like language years ago as > a school project, it worked, but I haven't done anything along those > lines since. I wrote a bytecode compiler for my NPCI language. You can find a description here: http://finitesite.com/d3jsys/README-NPCI.html As you can see it's been about 6 years since I worked on it. > I do have some half-baked thoughts to see if I can "compile" a limited > subset of Python into either PIC assembler directly or C, sutable for a > microprocessor. I think such a compiler already exists. Give me a virtual second... Here it is: http://pyastra.sourceforge.net It's written in Python. Maybe you can use it as a starting point. [some snippage] The language I'd like to immerse myself into this summer is Forth. NPCI runs on a stack based virtual machine and Forth simplifies parsing to nothing by using a couple of stacks and RPN for parsing. Just from noodling around in the last year, I think a productive system can be forumlated with a really small onchip core. Personally I'd like to get back to a system where all development occurs onchip. Just some thoughts. BAJ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist