News for hackers. Stuff that matters.
Re:The "C is Efficient" Language Fallacy (2006) by CountHackulus on Monday January 09, 2012 @09:32AM (#3442601)
In addition to that, if you're using the Intel compiler, then you can say

   #pragma ivdep
Which tells the compiler that the loop you're writing doesn't have any vector dependencies. Or -fno-fnalias to say that none of the arguments you're passing to a function are aliased.

Seems like pretty reasonable ways around the problem. Not to mention things like OpenMP.

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.