Re: [cc65] C Compiler Semantic Analysis

From: Payton Byrd <kingdurin1yahoo.com>
Date: 2006-01-16 23:47:53
MagerValp <MagerValp@cling.gu.se> wrote: >>>>> "UvB" == Ullrich von Bassewitz  writes:

UvB> Anyway, I don't think that parts of cc65 cannot be reused for a
UvB> BASIC compiler without much work.

I've also been playing a bit with compilation, and there is a lot in
CC65 that you can use. The linker, assembler, and runtime library can
be used to build upon. Unless you need something different, CC65's
software stack is a good base. You could even compile your language
into C, and then compile that with CC65 - it should generate pretty
good code, and you could easily make it support all of CC65's
platforms.
That's not a bad idea at all (compiling BASIC to C), but I already intend to use CA65 and LD65.  Part of the excercise is to learn a bit more about 6502 assembler, though.  Maybe do compile-to-C first, to get the grammer down, then do compile-to-assember on my own and compare the assembly outputs of the two techniques to see where I can improve.



Payton Byrd
<http://www.paytonbyrd.com>
<http://blogs.ittoolbox.com/visualbasic/dotnet/>
		
---------------------------------
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Jan 16 23:48:21 2006

This archive was generated by hypermail 2.1.8 : 2006-01-16 23:48:24 CET