Stéphane Letz kirjoitti: > Le 18 déc. 08 à 02:35, Sam Woodhead a écrit : > > >> Stéphane Letz wrote: >> >>>> Code optimizations >>>> ------------------------- >>>> >>>> In addition to MIDI I have done some modifications to the code that >>>> handles audio format/rate conversions. It's now faster than in >>>> earlier >>>> version that performed the conversions with too short chunks >>>> (increased >>>> call/setup overhead). In particular there is significant improvement >>>> under Solaris because I added proper compiler flags for better code >>>> optimization (this cause problems earlier and it's possible that the >>>> optimized code crashes in some cases). >>>> >>>> >>>> >>> Hi, >>> >>> Not sure the optimization flags are good in : http:// >>> mercurial.opensound.com/?rev/a15da9411856 >>> >>> As I understand "-fast" is a macro equivalent to several others >>> flags: >>> >>> http://developers.sun.com/solaris/articles/options.html >>> >>> http://developers.sun.com/solaris/articles/amd64_migration.html#fast >>> >>> so using -xO2 and -fast at the same does not make much sense AFAICS >>> >>> Note also that -fast will produce target platform specific code (in >>> the "Cons" section : The -fast option lets the compiler assume that >>> the target platform the code will run on is the same platform on >>> which it was compiled (because it includes -xtarget=native)) >>> >>> So it has to be used with care. >>> >>> Regards, >>> >>> Stephane Letz >>> _______________________________________________ >>> oss-devel mailing list >>> oss-devel@mailman.opensound.com >>> http://mailman.opensound.com/mailman/listinfo/oss-devel >>> >> -fast includes -xO5 >> >> (You can see what it includes using the command below) >> >> echo 'int main (void) { return 0; }' > test.c >> && cc -fast -xdryrun test.c >> > > This is the point. > > Does it make sense to combine -xO2 and -fast that itself does - > xO5 ?? Seems not... > Ok. I changed it to just -fast. However -xO5 will be used if the --portable-build flag was given when running configure. It may be necessary to use this flag when generarting OSS (Solaris) binary packages that are to be installed in other systems.
Best regards, Hannu _______________________________________________ oss-devel mailing list oss-devel@mailman.opensound.com http://mailman.opensound.com/mailman/listinfo/oss-devel