The fundamental questions の基本的な質問

There are two questions that you need to ask when compiling your program:には2つの質問をする必要があります。を求めるあなたのプログラムをコンパイルする際に:

1. 1 。 What do I know about the platforms that this program will run on?どうやって知ることについては、このプログラムのプラットフォーム上で実行されることですか?
2. 2 。 What do I know about the assumptions that are made in the code?どうしたらよいの前提は知っていて、コードですか?

The answers to these two questions determine what compiler options you should use.これらの2つの質問の回答を判断するのは何のコンパイラオプションを使用する必要があります。

The target platform ターゲットプラットフォーム

What platforms do you expect your code to run on?どのようなプラットフォームを期待してコードを実行するように上ですか? The choice of platform determines:プラットフォームの選択の決定:

1. 1 。 32-bit or 64-bit instruction set 32ビットまたは64ビットの命令セット
2. 2 。 Instruction set extensions the compiler can use命令セットの拡張子のコンパイラを使用
3. 3 。 Instruction scheduling depending on instruction execution times命令実行時間に応じて命令スケジューリング
4. 4 。 Cache configurationキャッシュの設定

The first three are often the most important ones.の最初の3つは、多くの場合、最も重要なものです。

Read the読んで full article全記事索引 here; strongly recommended.ここ;強くお勧めします。