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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/29/07, Jim Stapleton <stapleton.41@xxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux