ã¯ãã¹ã³ã³ãã¤ã©ï¼è±: cross compilerï¼ã¯ãã³ã³ãã¤ã©ãåä½ãã¦ããç°å¢ä»¥å¤ã®ãã©ãããã©ã¼ã åãã«å®è¡ãã¡ã¤ã«ãçæããæ©è½ãæã¤ã³ã³ãã¤ã©ã§ãã[1]ãã¯ãã¹ã³ã³ãã¤ã©ã¯ä¸»ã«çµã¿è¾¼ã¿ã·ã¹ãã åãã®ã³ã³ãã¤ã©ãããã«ããã©ãããã©ã¼ã 対å¿ã®ã³ã³ãã¤ã©ã¨ãã¦ä½¿ãããã å¿ è¦æå°éã®ã¡ã¢ãªããæè¼ãã¦ããªããã¨ãå¤ããã¤ã¯ãã³ã³ããã¼ã©ã使ã£ãçµã¿è¾¼ã¿ã·ã¹ãã ããã»ãã¥ãªãã£ã®ããã¢ããªã±ã¼ã·ã§ã³ã½ããã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã«ãåä½å½¢æ ã«å¶éã®ããã¢ãã¤ã«OSç°å¢ãªã©ãå®è¡ãã¡ã¤ã«ãåä½ãããããã©ãããã©ã¼ã ãã³ã³ãã¤ã«ç°å¢ã¨ãã¦ã¯ä¸é©åãªå ´åã«ã¯ã¯ãã¹ã³ã³ãã¤ã©ã¯å¿ é ã§ããã ã·ã¹ãã ãè¤æ°ã®ãã©ãããã©ã¼ã ããµãã¼ãããå ´åã«ãæºä»®æ³åã®ããã®ãã¼ã«ã¨ãã¦ã¯ãã¹ã³ã³ãã¤ã©ãå©ç¨ãããã¨ãä¸è¬åãã¤ã¤ããã ã¯ãã¹ã³ã³ãã¤ã©ã®åºæ¬ç使ç¨æ³ã¯ããã«ãç°å¢ãã¿ã¼ã²ããç°å¢ããåé¢ã
â [Thoughts] ããã°ã©ãã®æé¤ã¯ manual pages ã«å®¿ã (ãã®ï¼) ä»åã¯ããããã GNU C ã³ã³ãã¤ã©ã®ç»å ´ã§ããä¸è¬æ¸ã§ã¯ã»ã¨ãã©è§¦ãããããã¨ã®ãªããã¤ã³ã¯ã«ã¼ãå¦çã®æ義ãåèãã¦ã¿ã¾ãããã ã¯ãã¾ã㯠hello.c æåã®ã½ã¼ã¹ãã¡ã¤ã«ã¯ãæå³çã« #include <stdio.h> ãåé¤ãã hello1.c ã§ãã int main() { printf("Hello, world!\n"); return 123; } main é¢æ°ã®ä¸ã«ãprintf é¢æ°ããã³ return æãè¨è¿°ããã ãã®å°ããªããã°ã©ã ã§ããé常㯠return æã«ã¼ããæ·»ãããã¦ãã¾ãããã¹ãã¼ã¿ã¹ã³ã¼ãã®æå³ã強調ããããã« 123 ãæå®ãã¦ãã¾ã(UNIX ã®æ £ç¿ã¨ãã¦ããã»ã¹ã¯æ£å¸¸çµäºã®æï¼ãç°å¸¸çµäºã®æï¼ãè¿ã)ã main é¢æ°ã®æ»ãå¤ã¯ããã
æ¨æºçãªã¿ã¼ã²ãããã¡ã¤ã«æ´æ°ã®ææ³ã®ä¸ã«ã¯ããªãé »ç¹ã«ä½¿ããã®ãããã¾ããä¾ãã°ããªãã¸ã§ã¯ããã¡ã¤ã«ãä½æããã«ã¯ccã¨ããCã³ã³ãã¤ã©ã使ã£ã¦Cã½ã¼ã¹ãã¡ã¤ã«ããä½ãã¨ããæ¹æ³ãç¿æ £çãªãã®ã®ä¸ã¤ã§ãã ç¿æ £çãªæè¡ã®å©ç¨æ¹æ³ããããã詳細ã«æå®ããªãã¦ãããããã«makeã«ä¼ãã¦ããããã®ãæé»ã®ã«ã¼ã«ã§ããä¾ãã°Cã³ã³ãã¤ã«ä½æ¥ã«åãæé»ã®ã«ã¼ã«ãããã¾ãããã¡ã¤ã«åã§ã©ã®æé»ã«ã¼ã«ãå®è¡ãããã®ãã決å®ãããã®ã§ããä¾ãã°Cã®ã³ã³ãã¤ã«ä½æ¥ã§ã¯å ¸åçã«`.c'ãã¡ã¤ã«ãåãåã`.o'ãã¡ã¤ã«ãä½æãã¾ããã ãããã®äºã¤ã§çµãããã¡ã¤ã«åã®çµãè¦ã¤ããã¨makeã¯Cã³ã³ãã¤ã«ãè¡ãæé»ã«ã¼ã«ãé©ç¨ãã¾ãã æé»ã«ã¼ã«ã®é£éã次ã ã«é©ç¨ããããã¨ãããã¾ããä¾ãã°`.o'ãã¡ã¤ã«ãæ´æ°ããã®ã«`.y'ãã¡ã¤ã«ã使ãå ´åããã`.c'ã®ã¤ããã§æ´æ°ãã¾ãã ããã«ã¤ãã¦ã¯æé»ã«ã¼ã«
æçµæ´æ° 2019-01-03 GCC 㯠GNU ãä½æãã¦ãã Cã»C++ çã®ã³ã³ãã¤ã©ã§ãããLinux ã«ããã¦ã¯æ¨æºã® C ã³ã³ãã¤ã©ã gcc ã«ãªã£ã¦ãã (cc 㨠gcc ã¸ã®ã·ã³ããªãã¯ãªã³ã¯ã«ãªã£ã¦ãã)ãSolaris ãªã©åç¨ãã·ã³ã§ã gcc ã®éè¦åº¦ã¯é«ããOS æ¨æºã®ã³ã³ãã¤ã©ã§ã¯ã³ã³ãã¤ã«ã§ãããgcc ã使ããªãã¨ãããªãã½ããã¦ã§ã¢ãå¤ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}