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

> 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
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:49    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean