GCC Developer Lite (GDL) ã使ã£ã¦èªåã®PC㧠hello world ããã°ã©ã ã¨ããã¤ã³ã³ï¼ããã§ã¯H8-3664Fï¼ç¨ããã°ã©ã ãCè¨èªã§ä½æã§ããããã«ãªãã¾ã§ã®è¦æ¸ã
2022.3.1ã« GDL 2.7 ããªãªã¼ã¹ããã¦ãã¤ã³ã¹ãã¼ã«ã®æ¹æ³ã大ããå¤ãã£ã¦ãããæ¬ç¨¿ã¯ GDL 2.5 ã®æç¹ã®ãã®ã
GCC Developer Lite ã®ã¤ã³ã¹ãã¼ã«
- ã¾ãBesttechnology社ã®ãµã¤ã https://www.besttechnology.co.jp/modules/knowledge/?GCC%20Developer%20Lite ããã¤ã³ã¹ãã¼ã© ï¼2020.7.1ç¾å¨ GDLFull2.5.1.0.exeï¼ããã¦ã³ãã¼ããã¦å®è¡ããã
- ã¾ãã¤ã³ã¹ãã¼ã«ããè¨èªã®é¸æãæ¥æ¬èªã§[OK]ãã¯ãªãã¯
- ã¤ã³ã¹ãã¼ã©ãèµ·åããã®ã§[次ã¸(N)]ãã¯ãªãã¯
- [使ç¨è¨±è«¾å¥ç´æ¸ã®åæ]ãç¾ããã®ã§[åæãã(A)]ãé¸æãã¦[次ã¸(N)]ãã¯ãªãã¯
- [æ
å ±]ãç¾ããã®ã§[次ã¸(N)]ãã¯ãªãã¯
- [ã¤ã³ã¹ãã¼ã«å
ã®æå®]ãç¾ããã®ã§ããã㯠C:\Program Files (x86)\BestTech ã®ã¾ã¾ã§ã[次ã¸(N)]ãã¯ãªãã¯
- [ã³ã³ãã¼ãã³ãã®é¸æ]ãç¾ããã*1
- [H8-3664Fã§ã®ã¿ä½¿ç¨]ãé¸æããã¨ãã¤ã³ã³H8-3664ã®ããã°ã©ãã³ã°ã«å¿ è¦ãªã³ã³ãã¼ãã³ãã ãã«ãã§ãã¯ãå ¥ããï¼å¾ã§Windowsç¨ã追å ãããã¨ãå¯è½ï¼FLASH WRITER, H8GCC ãªã©ã«ãã§ãã¯ãå ¥ã
- ä¸ãã3åç®ã®[Windows(x64)ã§ã®ã¿ä½¿ç¨]*2ãé¸æããã¨Windowsããã°ã©ãã³ã°ã«å¿ è¦ãªã³ã³ãã¼ãã³ãã ãã«ãã§ãã¯ãå ¥ããï¼å¾ã§H8-3664ç¨ã追å ãããã¨ãå¯è½ï¼
- ãã¨ãã°[H8-3664Fã§ã®ã¿ä½¿ç¨]ã®å¾ã§[Windows(x64)ã§ã®ã¿ä½¿ç¨]ãã¤ã³ã¹ãã¼ã«ããã¨[æ¢åã®ã³ã³ãã¼ãã³ã]ãç¾ããã®ã§[ã¯ã(Y)]ãã¯ãªãã¯
- [ããã°ã©ã ã°ã«ã¼ãã®æå®]ãç¾ããã®ã§[次ã¸(N)]ãã¯ãªãã¯
- [追å ã¿ã¹ã¯ã®é¸æ]ãç¾ããã®ã§[次ã¸(N)]ãã¯ãªãã¯
- [ã¤ã³ã¹ãã¼ã«æºåå®äº]ãç¾ããã®ã§[ã¤ã³ã¹ãã¼ã«(I)]ãã¯ãªãã¯
ããã¨[ã¤ã³ã¹ãã¼ã«ç¶æ³]ã®ç»é¢ãç¾ãã - [GCC Developer Lite ã»ããã¢ããã¦ã£ã¶ã¼ãã®å®äº]ãç¾ããã®ã§[å®äº(F)]ãã¯ãªãã¯
以ä¸ã§GDLã®ã¤ã³ã¹ãã¼ã«ã¯çµäºãH8-3664Fã¨Windows(x64)ã®ä¸¡æ¹ãã¤ã³ã¹ãã¼ã«ããå ´åã«ã¯ããã®ä½æ¥ã2åè¡ãï¼ãã®ã¨ãå ã«ã¤ã³ã¹ãã¼ã«ããããã®ãæ¶ããããã¨ã¯ãªãï¼ã
Cè¨èªããã°ã©ãã³ã°ã¨ããã°ã©ã ã®å®è¡
注æï¼ããã®èª¬æ㯠Windows(x64) ãã¤ã³ã¹ãã¼ã«ãã¦ãããã®ã¨ãã¦æ¸ããã¦ããã
- ãã¹ã¯ãããä¸ã®[GCC Developer Lite]ã®ã¢ã¤ã³ã³ãã¯ãªãã¯ãGDLãèµ·åãã
GDLãèµ·åãã - hello world ç¨ã®è¨å®ï¼ã³ã³ã½ã¼ã«ããã°ã©ã ï¼ã³ãã³ãããã³ããä¸ã§åä½ããããã°ã©ã ï¼ä½æç¨ã®è¨å®
- [ãã¼ã«(T)]â[ã³ã³ãã¤ã«ãªãã·ã§ã³(O)...]ãé¸æ
- [è¨å®ãªã¹ã]ãã[x64 (Console)]ãé¸æ
- [å¤é¨ãã¼ã«é£å]ã¿ããéãã¦[ã³ã³ãã¤ã«æã«å¤é¨ãã¼ã«ãèµ·å(D]ã®ãã§ãã¯ããã¯ã¹ããªã³ã[å¤é¨ãã¼ã«(P)]ããã¯ã¹ã« C:\Windows\System32\cmd.exe ãæ¸ãè¾¼ã¿ã[OK]ãã¯ãªãã¯
- [ãã¼ã«(T)]â[ã³ã³ãã¤ã«ãªãã·ã§ã³(O)...]ãé¸æ
- hello world ããã°ã©ã ã®ä½æ
GDLã®éãé¨åã«æ¬¡ã®ããã°ã©ã (ã½ã¼ã¹ã³ã¼ã)ãæ¸ãã³ãããã*3
#include <stdio.h> int main (void) { printf("hello, world!"); return 0; }
- ããã°ã©ã (ã½ã¼ã¹ã³ã¼ã)ãä¿åãããä»åã¯ãã¹ã¯ãããã«"C"ã¨ãããã©ã«ããä½æããã
- [ãã¡ã¤ã«(F)]â[ååãä»ãã¦ä¿å(A)...]
- [ä¿åããã½ã¼ã¹ãã¡ã¤ã«åã®æå®]ã®å·¦å´ã®[ãã¹ã¯ããã]ãã¯ãªãã¯ãã
ãã¹ã¯ãããã®ãã©ã«ãã表示ãããã - [ä¿åããã½ã¼ã¹ãã¡ã¤ã«åã®æå®]ã®å³ä¸ã®[æ°ãããã©ã«ãã¼ã®ä½æ](ä¸å³ã®å³ä¸ã®èµ¤æ ã®ä¸ã®ã¢ã¤ã³ã³)ãã¯ãªãã¯
[æ°ãããã©ã«ãã¼]ãä½æããã - ãã©ã«ãã¼åã"C"ã«æ¸ãæããã
ãã®ãã¨"C"ãã©ã«ãã¼ãã¯ãªãã¯ããã - "hello.c"ã¨ããååã§ä¿åããï¼å³ã®èµ¤æ ã®é¨åã«"hello.c"ã¨æ¸ãã¦[ä¿å(s)]ãã¯ãªãã¯ã
- [ãã¡ã¤ã«(F)]â[ååãä»ãã¦ä¿å(A)...]
- ããã°ã©ã (ã½ã¼ã¹ã³ã¼ã)ããã«ããã¦ãããã°ã©ã (å®è¡ãã¡ã¤ã«)ãä½æãã
- [ã³ã³ãã¤ã«(C)]â[ãã«ã(B)ãF9]ãã¯ãªãã¯ããã
- ããã°ã©ã ãæ£ãããªãã°ã[ã³ã³ãã¤ã©åä½ãã°](éãé¨åã®ä¸ã®ç©ºæ¬)ã«ãã³ã³ãã¤ã«<æå>ãã表示ããã
- [ã³ã³ãã¤ã«(C)]â[ãã«ã(B)ãF9]ãã¯ãªãã¯ããã
- ããã°ã©ã (å®è¡ãã¡ã¤ã«)ãå®è¡ãã
- ã³ã³ãã¤ã«ã«æåãããã[INFORMATION]ãç¾ããã®ã§[OK]ãã¯ãªãã¯
- ã³ãã³ãããã³ãããç¾ããã®ã§ã"hello.exe"ã¨å
¥åãã¦[enter]ãã¼ãæ¼ãã¨ã"hello, world!"ã¨è¡¨ç¤ºãããã
- ã³ã³ãã¤ã«ã«æåãããã[INFORMATION]ãç¾ããã®ã§[OK]ãã¯ãªãã¯
*1:PCã«ä½è£ãããã°[ãã«ã¤ã³ã¹ãã¼ã«]ã®é¸æãããã
*2:[x86]ã¯32bitã®ããã°ã©ã , x64ã¯64bitã®ããã°ã©ã ãä½æããï¼32bit 64bit プログラミング 違い - Google 検索
*3:ããã°ã©ãã³ã°ã®æåæ©ã®åå¼·ã§ã¯ããã¹ã¿ã¤ãã«ããã¨ã©ã¼ãããçããã®ã§ã
ã¨ããã¹ããããè¸ãã®ã確å®ãªããããªãããªã