[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NadaNet file server coming soon...



On Apr 30, 8:13 pm, HansO <msxh...@yahoo.com> wrote:
> mdj <mdj....@gmail.com> wrote:
>
> 2 is a *great* scanning machine!
>
> >As a part of a compiler project I wrote a (sub) version of "lex" that
> >outputs pretty tight 6502 code. Pruning the DFA's down to optimal
> >execution time was great fun :-)
>
> Sounds interesting! Can you publish this?

I do plan to, yes. The idea was to recreate fairly typical UNIX-like
tools in a way that was efficient enough to use on a 6502 machine.
It's written in C, but compiles and runs reasonably well on an Apple
II using cc65. The output format is Merlin Pro assembly. I intend to
eventually rewrite it in assembly, but left it in C until I was happy
with the output code.

The eventual goal is to have the toolchain self-hosting on the Apple.
I wasn't planning to release anything until I had the compiler hosting
itself, but since you're interested I'll clean up lex and get it out
there.

Matt