Re:The "C is Efficient" Language Fallacy (2006)
by tlb on Monday January 09, 2012 @10:50PM
(#3445575)
Pragmas suck. What I want is to explicitly assert the condition:
assert(a+n < b || b+m < a);
(saying that a[0..n] and b[0..m] don't alias) and have the compiler generate code that first tests the condition and generates optimized code given the assumption.
Re:The "C is Efficient" Language Fallacy (2006)
by gillianseed on Monday January 09, 2012 @05:59PM
(#3444727)
iirc the GCC equivalent of ICC's '-fno-fnalias' is '-fargument-noalias'. A pragma would be nice though.
Seems like pretty reasonable ways around the problem. Not to mention things like OpenMP.