๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ป Programming ๊ฐœ๋ฐœ

[C์–ธ์–ด] ๋‚ด๊ฐ€ ๋ณด๋ ค๊ณ  ์ •๋ฆฌํ•œ C์–ธ์–ด ๊ณต๋ถ€ํ•˜๊ธฐ ์ข‹์€ ์ฑ…๊ณผ ์‚ฌ์ดํŠธ ์ถ”์ฒœ + ์ง์ ‘ ๊ณต๋ถ€, ์ด์šฉํ•ด๋ณด๊ณ  ์ •๋ฆฌํ•œ ๋‚ด์šฉ + C์–ธ์–ด๋ฅผ ์‹œ์ž‘ํ•˜๋Š” ์ดˆ๋ณด์ž์—๊ฒŒ ์ถ”์ฒœ

by kimdee 2021. 6. 26.
๋ฐ˜์‘ํ˜•

Photo by ThisisEngineering RAEng on Unsplash

 

C์–ธ์–ด ์ฑ… ์ถ”์ฒœ

ํ˜ผ๊ณตC(ํ˜ผ์ž ๊ณต๋ถ€ํ•˜๋Š” C)

์ดˆ๋ณด์ž๋„ ์•Œ๊ธฐ ์‰ฝ๊ฒŒ ์„ค๋ช…์„ ์ž˜ํ•ด์คŒ. ์ถ”์ฒœbb 

ํ•™๋ถ€์˜ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊ฐœ๋ก  ์ˆ˜์—…์ด C์–ธ์–ด๋กœ ์ง„ํ–‰๋˜๋Š”๋ฐ, ์ˆ˜์—… ๋“ฃ๊ธฐ ์ „์— ์ด ์ฑ…์œผ๋กœ ๊ธฐ์ดˆ ๋ฌธ๋ฒ•์„ ๋–ผ๊ณ  

์ˆ˜์—…์„ ๋“ค์—ˆ๊ณ , ์ˆ˜์—…์—์„œ A+๋ฅผ ๋ฐ›๊ณ  2๋“ฑ ํ–ˆ์—ˆ์Šต๋‹ˆ๋‹ค. 

https://www.aladin.co.kr/shop/wproduct.aspx?ItemId=193933135

 

C์–ธ์–ด ์ฝ”๋”ฉ๋„์žฅ

์ฑ… ์‚ฌ์ดํŠธ์—์„œ๋„ ์ฝ”๋“œ์™€ ๋‚ด์šฉ์ด ์žˆ์–ด์„œ

์ฑ…์ด ๋” ํŽธํ•œ ๊ฒŒ ์•„๋‹ˆ๋ผ๋ฉด ์‚ฌ์ดํŠธ๋ฅผ ์ด์šฉํ•˜๋Š” ๊ฒƒ๋„ ์ถ”์ฒœํ•ฉ๋‹ˆ๋‹ค.

๋™์˜์ƒ ๊ฐ•์˜๋„ ์žˆ์Œ. 

https://www.aladin.co.kr/shop/wproduct.aspx?ItemId=86120379

 

 

C์–ธ์–ด ๊ณต๋ถ€ ์‚ฌ์ดํŠธ ์ถ”์ฒœ

์ฝ”๋”ฉ๋„์žฅ

๋™์˜์ƒ ๊ฐ•์ขŒ์™€ ์ฝ”๋“œ ์„ค๋ช… ๋“ฑ ๊ฐ„ํŽธํ•˜๊ฒŒ ๋˜์–ด ์žˆ์Œ. 

https://dojang.io/course/view.php?id=2

 

์˜จ๋ผ์ธGDB

์˜จ๋ผ์ธ ๋””๋ฒ„๊ฑฐ. ์˜จ๋ผ์ธ์—์„œ ์ง์ ‘ C์–ธ์–ด๋ฅผ ๊ฐ„ํŽธํ•˜๊ฒŒ ์งœ๊ณ  ์ปดํŒŒ์ผ์„ ํ•ด์„œ ๊ฒฐ๊ณผ๋ฅผ ๋ณด๊ธฐ ์ข‹์Œ 

https://www.onlinegdb.com/

 

 

CํŠœํ„ฐ, ์ •ํ™•ํžˆ๋Š” ํŒŒ์ด์ฌํŠœํ„ฐ๋‹ท์ปด

C์–ธ์–ด ์ฝ”๋“œ๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ์‹คํ–‰ ์ˆœ์„œ๋ฅผ ๋ผ์ธ์ˆœ์„œ๋Œ€๋กœ ์ด๋ฏธ์ง€ํ™”ํ•˜์—ฌ ๋ณด์—ฌ์ฃผ๊ธฐ ๋•Œ๋ฌธ์— ์ดํ•ดํ•˜๊ธฐ ์ข‹์Œ. 

์›น๊ธฐ๋ฐ˜์˜ ์‹œ๊ฐํ™”ํˆด

http://pythontutor.com/c.html#mode=edit

 

ํŒŒ์ด์ฌ ํŠœํ„ฐ๋‹ท์ปด์˜ ๊ฒฝ์šฐ ์ด๋ฆ„์ด ํŒŒ์ด์ฌ์ด์ง€๋งŒ, C์–ธ์–ด์™€ ๋‹ค๋ฅธ ์—ฌ๋Ÿฌ ์–ธ์–ด๋“ค์„ ์ง€์›ํ•˜๊ณ  ์žˆ๋‹ค. 

ํ˜„์žฌ 180๊ฐœ๊ตญ์˜ 350๋งŒ ์œ ์ €๋“ค์ด ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค๊ณ .. 

 

ํ†กํŒŒ์ด์ฌํˆฌ๋ฏธ ํŒŸ์บ์ŠคํŠธ์—์„œ ์‚ฌ์ดํŠธ๋ฅผ ๋งŒ๋“  ์‚ฌ๋žŒ๊ณผ์˜ ์ธํ„ฐ๋ทฐ๋ฅผ ๋“ค์„ ์ˆ˜ ์žˆ๋‹ค. (์ถ”์ฒœ!)

https://talkpython.fm/episodes/show/22/cpython-internals-and-learning-python-with-pythontutor.com

 

CPython Internals and Learning Python with pythontutor.com

It's time to look deep within the machine and understand what *really* happens when your Python code executes. We're code-walking through the CPython code and visualizing it at pythontutor.com.

talkpython.fm

ํŒŒ์ด์ฌํŠœํ„ฐ๋‹ท์ปด์„ ๋งŒ๋“  Philip Guo๋Š” UC San Diego์—์„œ ์ธ์ง€๊ณผํ•™ ๋ถ„์•ผ ์กฐ๊ต์ˆ˜๋กœ ๊ทผ๋ฌดํ•˜๊ณ  ์žˆ๋‹ค. 

 

๊ทธ ์™ธ C์–ธ์–ด ๊ณต๋ถ€๋ฒ• ๊ด€๋ จ ๋ธ”๋กœ๊ทธ 

 

https://sunyzero.tistory.com/225

 

https://www.joinc.co.kr/w/Site/Beginner/StudyHowTo

 

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€