|
|
|
|
|
by walki
1989 days ago
|
|
> C compilers have to assume that pointers to memory locations can overlap, unless you mark them __restrict... What I don't fully understand is: "GCC has the option -fstrict-aliasing which enables aliasing optimizations globally and expects you to ensure that nothing gets illegally aliased. This optimization is enabled for -O2 and -O3 I believe." (source: https://stackoverflow.com/a/7298596) Doesn't this mean that C++ programs compiled in release mode behave as if all pointers are marked with __restrict? |
|