From: Marko Mäkelä (msmakela_at_cc.hut.fi)
Date: 1999-07-19 09:17:24
On Mon, 19 Jul 1999, Ullrich von Bassewitz wrote: > To be really sure, a register variable that has its address taken must not go > into a register (gcc is doing it this way). Unfortunately, the cc65 parser is > too stupid to do things like that (when it sees the address operator, the code > to put the variable into zero page storage has already been generated, and > there is no way back). Why not? The optimization routines (which work at the assembly language level) could be signalled to make a register variable of a function a non-register one. Only the initialization and the clean-up code would need patching, I think. > If no one has a better idea, my solution will probably be to disable register > variables by default. Your idea sounds good. Marko ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:44 CET