松本です。 テスト、検証、勉強のため…ということではなく、もし実環境で使うことを想定 しているようでしたら、別ポストで今井さんがおっしゃっているように RPM 管 理していった方が無難だと私も思いますが…。吊るしの Apache2 だと使いたい バージョンがないとか、いろいろオプションを変えたコンパイルをしてみてベン チマークとかとってみたいとかいうことでしょうかね。 で、以下、私も gcc について詳しいわけではないんで、あくまで man を見る限 り、ということで気になったところを。 mlus さんは書きました:
64bitに対応するために、man gcc で オプションを調べた所 i386 and x86-64 Options -mpc32 -mpc64 というオプションと -m32 -m64 が存在する。
どこまで man を読まれてますでしょうか? -mpc32 -mpc64 -mpc80 Set 80387 floating-point precision to 32, 64 or 80 bits. When -mpc32 is specified, the significands of results of floating-point operations are rounded to 24 bits (single precision); -mpc64 rounds the significands of results of floating-point operations to 53 bits (double precision) and -mpc80 rounds the significands of results of floating-point operations to 64 bits (extended double precision), which is the default. When this option is used, floating-point operations in higher precisions are not available to the programmer without setting the FPU control word explicitly. Setting the rounding of floating-point operations to less than the default 80 bits can speed some programs by 2% or more. Note that some mathematical libraries assume that extended precision (80 bit) floating-point operations are enabled by default; routines in such libraries could suffer significant loss of accuracy, typically through so-called "catastrophic cancellation", when this option is used to set the precision to less than extended precision. [snip] -m32 -m64 Generate code for a 32-bit or 64-bit environment. The 32-bit environment sets int, long and pointer to 32 bits and generates code that runs on any i386 system. The 64-bit environment sets int to 32 bits and long and pointer to 64 bits and generates code for AMD's x86-64 architecture. For darwin only the -m64 option turns off the -fno-pic and -mdynamic-no-pic options. …ということで、そもそも意味が違っていますよね。単純に 64 bit のバイナリ が作りたい場合は -m64 でいいのではないでしょうか。-mpc64 オプションは 「オペレーションのフローティングポイントの結果の仮数部を 53 bit (倍精度) にする」 # 全然意味が分かってないんで、単なる棒訳です。(^ ^;) # 詳しい方、フォローお願いします。 # てか、詳しい人がいても、メーリングリストへのリプライだけでは # 説明しきれないんじゃないかという気はしますね(笑)。 …ためのオプションだと書いてありますね。 -- _/_/ Satoru Matsumoto - openSUSE Member - Japan _/_/ _/_/ Marketing/Weekly News/openFATE Screening Team _/_/ _/_/ mail: helios_reds_at_gmx.net / irc: HeliosReds _/_/ _/_/ http://blog.geeko.jp/author/heliosreds _/_/ -- To unsubscribe, e-mail: opensuse-ja+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-ja+help@opensuse.org