gcc ã 4.1 ç³»ãã OpenMP ã«å¯¾å¿ããã¿ããï¼ ä½¿ãæ¹ã¯ï¼ã³ã³ãã¤ã«æã«"-fopenmp"ãä»ãã¦ã³ã³ãã¤ã«ãï¼libgomp ããªã³ã¯ããã ãï¼ã¨ãããã gcc-4.1.0 ã®prereleaseçã§ã¯åä½ããï¼
ãã®ãã¼ã¸ã§ã¯ãGCC ã«ãããæé©åãªãã·ã§ã³ã«é¢ããæ å ±ãã¾ã¨ãã¦ãã¾ãã 対象ã¨ãã¦ããã®ã¯ x86 ç³» CPU, GCC 3.0 系以éã§ãã ç®æ¬¡ å CPU åãæé©åãªãã·ã§ã³ æ¡å¼µå½ä»¤åãæé©åãªãã·ã§ã³ ãªã³ã¯ å CPU åãæé©åãªãã·ã§ã³ GCC ã«ã¯ä»¥ä¸ã® 3 ã¤ã®å CPU åãæé©åãªãã·ã§ã³ãããã¾ãã -march æå®ãã CPU ã ãã§åä½ãããããªã³ã¼ããçæãã¾ããå¾è¿°ã® -mcpu ããéãã³ã¼ããçæå¯è½ã -mcpu -march ã¨éããåç³»åã® CPU ã§ãåä½ãããããªã³ã¼ããçæãã¾ãã -mtune GCC 3.4 ç³»ã§å°å ¥ããã -mcpu ã®å¥åã ãããã¯ã以ä¸ã®è¡¨ã«ããâCPU ã¿ã¤ãâã¨çµã¿åããã¦ã-march=pentium2 ã®æ§ã«ä½¿ãã¾ãã
Unixç³»ã³ãã³ãã©ã¤ã³ã¦ã¼ã¶ã¼ã®ããã®ã gcc/g++/g77 ã«ããéçºã«ããããããã°è¡ãç°¡åã«ç´¹ä»ãã¾ãã 以ä¸ã®å 容㯠gcc 2.7.2.3 ã§ã®åä½ã¯ç¢ºèªãã¦ãã¾ãã g++/g77 ã§ãæããã¯éç¨ããã¨æãã®ã§ããã ã²ãã£ã¨ããã¨ç°ãªãé¨åãããããããã¾ããã çè 㯠g++/g77 ã®ä½¿ç¨çµé¨ããªãã®ã§ããã®å ´åã¯å¾¡å®¹èµ¦ãé¡ãã¾ãã å®è¡å ãã¼ã¯ã¼ããã³ã³ãã¤ã«ãªãã·ã§ã³, -Wall, -O2, -O4ã ã¾ã㯠gcc ã«ãªãã·ã§ã³ opt'-Wall' ãä»ãã¦ã³ã³ãã¤ã«ãã è¦åããªããªãã¾ã§ã½ã¼ã¹ãä¿®æ£ãã¾ãã ãã㯠常è ã§ãã 次㫠opt'-O4 -Wall' ã§ã³ã³ãã¤ã«ãã¾ãã ãæªåæåå¤æ°ã®ä½¿ç¨ãã®è¦å (`foo' might be used uninitialized in this function) ã¯ã opt'-O4' ãä»
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}