This is the mail archive of the gcc-patches@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: [PATCH 1/5] Named address spaces: core middle-end support


Richard Guenther wrote:

> To be more clear - when would a valid input program have a
> conversion between pointers to different address spaces?

Oh, this can be very useful -- for example, on the Cell we
provide library functions like

  __ea void *memcpy_ea (__ea void *dest, __ea const void *src, size_ea_t n);

Due to the fact that generic local store pointers automatically
convert to __ea pointers, this routine can also be called to
copy from local store to the __ea space or vice versa.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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