On Thu, Oct 22, 2009 at 01:37:19AM +0200, Johan Kotlinski wrote: > Oups, sorry. I see now that both foo and { 1, 2, 3 } are static. But > they don't reside in the same space, and { 1, 2, 3 } is copied to foo > in runtime. > > A little surprising, as I expected -Cl to give the same result as > declaring every local variable static. No, the behaviour isn't the same. See the description of -Cl here: http://www.cc65.org/doc/cc65-2.html#ss2.2 for an explanation. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Thu Oct 22 11:03:53 2009
This archive was generated by hypermail 2.1.8 : 2009-10-22 11:03:55 CEST