pset1 - 'Hello'
๊ธฐ๋ณธ ํจ์ ์ ์ธ์ ํตํด ์ถ๋ ฅํ๊ธฐ
C์ธ์ด๋ฅผ ๋ง ์์ํ๋ ๋จ๊ณ์์ ๊ณผ์ ์ ๋์์๋ ์ค๋ช ๋ฌธ๋ค์ ์ฒ์ฒํ ์ฝ๊ณ ์ดํดํด๋๊ฐ๊ธฐ์ ์ข๋ค.
๋จผ์ ์ผ์ชฝ์ listing files๋ผ๋ ์ ๋ชฉ์ผ๋ก ๋ ์ฐฝ์ด ๋์ค๋๋ฐ,
์ด ์ฐฝ์ ๋ด์ฉ์๋ ์์ผ๋ก๋ ์ญ ๊ฐ์๋ฅผ ๋ค์ ๋๋ ๊ณผ์ ์์ฑ ์์ ์จ์ผํ ๊ธฐ๋ณธ์ ์ธ ์์๋ค์ ๋ํด ์ค๋ช ํ๊ณ ์๋ค.
> CS50 Lab - ํด๋ผ์ฐ๋ ๊ธฐ๋ฐ์ Text Editor
> Terminal Window - ์ค๋ฅธ์ชฝ ์ฐฝ์์ ์ค๊ฐ ์๋ ๋ถ๋ถ์ $ํ์๊ฐ ๋ํ๋ ์๋ ๊ณต๊ฐ
> command-line interface (CLI) - ํค๋ณด๋ ์ ๋ ฅ๊ฐ์ผ๋ก ๊ตฌํํ๋ ์ธํฐํ์ด์ค
> graphical user interface (GUI) - ํด๋ ์์ด์ฝ๊ณผ ๊ฐ์ ๊ทธ๋ํฝ์ผ๋ก ๊ตฌํํ๋ ์ธํฐํ์ด์ค
> 'execute a command' - ์ปค๋งจ๋ ์ฐฝ์์ ์ ๋ ฅํ ํ enter ํค๋ฅผ ์น๋ ๊ณผ์ (to type into a terminal window and then hit enter)
> ls - ํ์ฌ ํด๋๊ณต๊ฐ์ ์๋ ๋ชจ๋ ํ์ผ๋ค์ ๋์ด(list)ํด์ค๋ค.
> clang - compiler๋ฅผ ํตํด compileํ๋ ๋ช ๋ น๋ฌธ์ด๋ผ๊ณ ์ดํดํ ์ ์๋ค.
์ด ๊ณผ์ ์, ์ฐ๋ฆฌ๊ฐ .c ๋ผ๋ C์ธ์ด ์ฝ๋ ํ์์ผ๋ก ์ ์ฅํ source code๋ฅผ ์ปดํจํฐ๊ฐ ์ฝ์ ์ ์๋ machine code๋ก ๋ฒ์ญํด์ฃผ๋ ๊ณผ์ ์ด๋ค.
์ฐ๋ฆฌ๊ฐ .c ๋ผ๋ ํ์์ผ๋ก ์ ์ฅํ source code ์์ฒด์ ๋ํด์ ์ปดํจํฐ๊ฐ ์ฝ์ด๋ค์ผ ์ ์๋ค.
> ./ - ์คํํ๋ ค๋ ํ์ผ์ด๋ฆ์ ์์ ./์ ์ ๋ ฅํ๋ฉด ์คํํ๋ผ๋ ๋ช ๋ น์ด ๋๋ค.
> -o - command-line arguement (flag๋ switch๋ผ๊ณ ๋ ๋ถ๋ฆผ). ํ๋ก๊ทธ๋จ์ ์ด๋ฆ(output)์ผ๋ก ์ฌ์ฉ์๊ฐ ์ํ๋ ์ด๋ฆ์ ์ ์ฅํ ์ ์๋ค.
'Computer ๐ป > C language' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
CS50 (feat. edX ํ๋ซํผ) (0) | 2020.03.18 |
---|