Talk:Restrict

From Wikipedia, the free encyclopedia

[edit] Declaration of intent only?

Is this the programmer telling the compiler "I won't point there twice. So assume I don't." or "I don't want to point there twice. Check and make sure that I don't."? --84.62.198.149 23:34, 2 June 2007 (UTC)

The former. This check is impossible to do in general at compile time (if it were possible, the "restrict" keyword wouldn't be necessary in the first place) and C just doesn't have any such thing as a run-time check (environments are free to provide them, but the standard never requires them, leaving all the situations were they would be required as undefined behavior). 82.95.254.249 (talk) 21:50, 20 November 2007 (UTC)

[edit] load R3 ← *ptrA

I'm new to restrict, but is load R3 ← *ptrA supposed to be load R3 ← *ptrB in...

load R1 ← *val 
load R2 ← *ptrA
load R3 ← *ptrA
add  R2 += R1
add  R3 += R1
set  R2 → *ptrA
set  R3 → *ptrB

? Also, is <source lang="asm"> appropriate for a piece of pseudo-asm? Bitwiseb (talk) 09:55, 14 May 2008 (UTC)

Fine, I'll just change it... Bitwiseb (talk) 20:32, 15 May 2008 (UTC)