lkml.org 
[lkml]   [1999]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Structure vs purism ?
Date
From

[...]
> It's not a question of structured vs. spaghettish. It's a question
> of implementing two constructs missing in C: asymmetric if and (gaack!)
> very limited sort of exceptions. Compilers might get advanced and all
> such, but in C we have no way to inform compiler on relative probability
> of branches (and it can't figure it out for itself - AI-complete problem).
[...]

Changing the C language won't be easy, but an asymmetric if could be
implemented by putting #pragma probable_if, #pragma improbable_if
and #pragma normal_if in the code. We could then write "nice readable"
code and still get a fast result.
Helge Hafting.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site