On Tue, Apr 21, 2009 at 12:21:12AM +0200, Roland Mainz wrote: > Fedor Sergeev wrote: > > On Fri, Apr 17, 2009 at 05:42:08PM +0200, Roland Mainz wrote: > > > Is there somewhere a document which describes which functions are > > > available as builtin functions via Sun Studio's "-xbuiltin=%all" option > > > ? > > > > Not really. > > We do not handle it as "direct" builtins, that is headers do not contain > > compiler specific symbols, like builtin_sqrt or whatnot. > > Erm... what do you mean with that ?
Well, you just dont want to know then ;) > > > Optimizing compiler components (backends) are able to optimize nearly every > > standard function (function that is declared in a standard header). > > How does that work ? Compiler knows that function declaration comes from a standard system header (it reads these declarations from those headers after all). Then this function is considered to be a standard function and is subject for -xbuiltin optimizations. > > > Different backends on different platforms have different ideas on what > > is a good function to optimize. > > > > What are you trying to solve with that document? > > I'd like to enable only a few builtin functions (basically only those > which make sense from a performance point-of-view (like the string copy > functions) and those which do not alter |errno|). Sorry, I do not believe this is possible. regards, Fedor. > > ---- > > Bye, > Roland > > -- > __ . . __ > (o.\ \/ /.o) roland.mainz at nrubsig.org > \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer > /O /==\ O\ TEL +49 641 3992797 > (;O/ \/ \O;) > _______________________________________________ > tools-compilers mailing list > tools-compilers at opensolaris.org
