[A86] Re: Alternative Language compiler for the z80.
[Prev][Next][Index][Thread]
[A86] Re: Alternative Language compiler for the z80.
> Do you mean to have a separate variable for each source file? There's
> about a 16 byte overhead per file, plus the extra code to call across
> variable, and you can't store local data in _asm_exec_ram (unless you
> want to combine this with in-place execution)
>
> Much of the inefficiency of the rom comes from the fact that the code is
> split across multiple pages.
This is why I disagree. Everything is assembled at once.
> Not to mention that it's difficult to know exactly how big a variable
> will end up in C.
> How big is an int? Could be 8, 16, 32, or maybe 64 bits, depending on
> the compiler. On the calc, this is always important.
> If you could do a typedef byte int[2]; or something and still be able to
> use it as a single value... neato!
Exactly. I'd like to avoid all that, and have every base type be a fixed
size.
> Using a library on the calc would be beautiful (not for simple rom call
> wrappers, of course), but only if it was standardized and many people
> used it. You'd also have to include it with every program, but that
> shouldn't be an issue.
Any ideas on what this library would be?
References: