lkml.org 
[lkml]   [1999]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: goto's ???
From
Date
"Khimenko Victor" <khim@sch57.msk.ru> writes:

[common path branch optimizations]

> P.S. Compiler can not do such optimization IN PRINCIPLE sinse it has no info
> about "common path" :-(( Of course it's possible to extend "C" to make such
> automatic optimization possible but it's not clear if such change is worthfull...

Er, sorry, but it can do it. It just needs a multi-pass compile with a
profiling run in the middle.

See `-fprofile-arcs' and `-fbranch-probabilities' in the manual for a
recent GCC.

--
`As promised, here's the patch to do this. Not only is it good (it
compiles), but it is perfect (it boots). Up 9 minutes so far without
problems.' --- Richard Gooch on linux-kernel

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