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    [W:0.301 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site