[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cc65 competition?
On Apr 13, 3:44 pm, Harry Potter <maspethro...@aol.com> wrote:
> On Apr 13, 3:00 pm, BruceMcF <agil...@netscape.net> wrote:
>
> > Rather than try to replace cc65, improve it. Then each feature on your
> > list is added to what cc65 already provides.
>
> I understand. Thank you.
Let me add to that. I have some ideas that I think would improve
compiled C code:
* Calculation optimizations: All work would be done at compile
time, and only actual data modifications would be written to code.
* Stack optimizations: Instead of using the stack to save
intermediate results, I could use, on the inner-most ones, a zeropage
environment variable.
* Pointer/index: If possible, zeropage pointers would be referenced
directly or through an index.
* __fastcall and register declarations: I don't know if other 6502
C compilers do this, but I plan to allocate three words in zp for
register and __fastcall declarations and use unused environment space
for excess register declarations.
What do you think?