Re: [cc65] Register variables

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 1999-07-19 14:36:24


> "However, if an object is declared register, the unary & operator may
> not be applied to it, explicitly or implicitly".
>
> So to me it seems that taking the address of a register variable is
> actually forbidden.

You're probably right and I was wrong. I had to browse the AIX C compiler
documentation for some other reason today, and it states that taking the
address of a register variable is allowed in C++ but forbidden in C. So it
seems this is actually the easiest solution.

Regards


	Uz


--
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:44 CET