The fundamental questions Domande fondamentali

There are two questions that you need to ask when compiling your program: Ci sono due domande che avete bisogno di chiedere quando si compila il tuo programma:

1. What do I know about the platforms that this program will run on? Che cosa faccio a sapere circa le piattaforme che questo programma durerà?
2. What do I know about the assumptions that are made in the code? Che cosa faccio a sapere circa le ipotesi che sono fatte in codice?

The answers to these two questions determine what compiler options you should use. Le risposte a queste due domande determinare quali opzioni per il compilatore si dovrebbe usare.

The target platform La piattaforma di destinazione

What platforms do you expect your code to run on? Piattaforme di fare ciò che vi aspettate il tuo codice di girare su? The choice of platform determines: La scelta della piattaforma determina:

1. 32-bit or 64-bit instruction set 32-bit o 64 bit set di istruzioni
2. Instruction set extensions the compiler can use Set di istruzioni estensioni il compilatore può utilizzare
3. Instruction scheduling depending on instruction execution times Istruzioni di programmazione a seconda esecuzione di istruzioni volte
4. Cache configuration Cache di configurazione

The first three are often the most important ones. I primi tre sono spesso le più importanti.

Read the Leggi il full article Articolo completo here; strongly recommended. qui; fortemente raccomandato.