Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

pointer aliasing

I am curious about how the Altera OpenCL compiler handles pointers. If I pass a piece of data into a function say an unsigned integer vector and then say something like

F0=*foo

does OpenCL copy the value of foo into F0 a la C99 or does it alias the pointer with F0?

-Aaron

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    OpenCL running on the FPGA should behave just like any other vendor. Assuming F0 is a variable and foo is a pointer then F0 should have whatever foo is pointing at stored into it.