This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can something similar to &x=&y be accomplished in C


On 8/29/07, Jim Stapleton <stapleton.41@gmail.com> wrote:

> there any way to efficiently have the same effect as &x = &y (having a
> variable "be" another variable, rather than just point to it) in plain
> C with GCC, or is that out of the question?

Not possible without pointers.  In fact, the C++ version using &t
expands to almost the same code you'd have with pointers in C.  Try
using -fdump-tree-optimized on the C++ version.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]