{"id":49265,"date":"2026-11-05T02:39:13","date_gmt":"2026-11-04T17:39:13","guid":{"rendered":"https:\/\/jore2.com\/?p=49265"},"modified":"2026-11-05T02:39:13","modified_gmt":"2026-11-04T17:39:13","slug":"news-23028-the-lost-malloc","status":"publish","type":"post","link":"https:\/\/jore2.com\/?p=49265","title":{"rendered":"\uc720\ub2c9\uc2a4 V4 \uc18c\uc2a4\uc5d0\uc11c \ud655\uc778\ub41c \ucd08\uae30 \uba54\ubaa8\ub9ac \ud560\ub2f9 \ubc29\uc2dd"},"content":{"rendered":"<div class=\"jore2-editor-byline\">\n<p><strong>\uc724\uc9c0\ud6c4<\/strong><\/p>\n<\/div>\n<p>\ubca8 \uc5f0\uad6c\uc18c\uac00 \uac1c\ubc1c\ud55c \uc720\ub2c9\uc2a4 4\ud310\uc758 \uc6d0\uc2dc \ucf54\ub4dc\uac00 \ucd5c\uadfc \ubcf5\uc6d0\ub418\uc5b4 \uacf5\uac1c\ub418\uba74\uc11c, 1970\ub144\ub300 \ucd08\uc911\ubc18\uc758 \uc2dc\uc2a4\ud15c \ud504\ub85c\uadf8\ub798\ubc0d \uad00\ud589\uc774 \ub2e4\uc2dc \uc8fc\ubaa9\ubc1b\uace0 \uc788\ub2e4. \ud2b9\ud788 \uc774\ubc88 \uc790\ub8cc\ub294 C \uc5b8\uc5b4\uac00 \ubcf8\uaca9\uc801\uc73c\ub85c \ub3c4\uc785\ub41c \uc2dc\uc810\uc758 \uba54\ubaa8\ub9ac \ud560\ub2f9 \ub85c\uc9c1\uc744 \uad6c\uccb4\uc801\uc73c\ub85c \ubcf4\uc5ec\uc900\ub2e4.<\/p>\n<p>\ud574\ub2f9 \ucf54\ub4dc\uc5d0\ub294 malloc.c\ub77c\ub294 \ud30c\uc77c\uc774 \ud3ec\ud568\ub418\uc5b4 \uc788\uc9c0\ub9cc, \uc774\ub294 \ud604\ub300\uc801\uc778 \uc758\ubbf8\uc758 \ub3d9\uc801 \uba54\ubaa8\ub9ac \ud560\ub2f9 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc640\ub294 \uac70\ub9ac\uac00 \uba40\ub2e4. \ub2f9\uc2dc C \ucef4\ud30c\uc77c\ub7ec \ub3c4\uad6c\uccb4\uc778 c20.c \ub0b4\ubd80\uc5d0\uc11c\ub294 \ub2e8\uc21c\ud55c \uc120\ud615 \ud560\ub2f9\uc790\uac00 \uc0ac\uc6a9\ub418\uc5c8\ub2e4. \uc694\uccad\ubc1b\uc740 \ud06c\uae30\ub97c \uc9dd\uc218 \ub2e8\uc704\ub85c \ubc18\uc62c\ub9bc\ud558\uc5ec \uc5f0\uc18d\ub41c \ube14\ub85d\uc744 \ubc30\ubd84\ud558\ub294 \ubc29\uc2dd\uc774\uc5c8\ub2e4.<\/p>\n<p>\uba54\ubaa8\ub9ac\uac00 \ubd80\uc871\ud574\uc9c0\uba74 sbrk() \ud568\uc218\ub97c \ud638\ucd9c\ud574 \ud799 \uc601\uc5ed\uc744 \ud655\uc7a5\ud588\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c \uc911\uc694\ud55c \uc810\uc740 \ud574\uc81c \uae30\ub2a5\uc774 \uc874\uc7ac\ud558\uc9c0 \uc54a\uc558\ub2e4\ub294 \uc0ac\uc2e4\uc774\ub2e4. \ud504\ub85c\uadf8\ub7a8\uc774 \uc885\ub8cc\ub420 \ub54c\uae4c\uc9c0 \ud560\ub2f9\ub41c \uba54\ubaa8\ub9ac\ub294 \uacc4\uc18d \uc720\uc9c0\ub418\ub294 \uad6c\uc870\uc600\ub2e4.<\/p>\n<p>\ub530\ub77c\uc11c \ubcc4\ub3c4\uc758 free \uc5f0\uc0b0\uc774 \ud544\uc694 \uc5c6\uc5c8\ub2e4.<\/p>\n<p>\uc774\ub294 \ucee4\ub110 \ub0b4\ubd80\uc758 malloc()\uacfc mfree()\uc640\ub294 \uba85\ud655\ud788 \uad6c\ubd84\ub41c\ub2e4. \ucee4\ub110\uc740 \uba85\uc2dc\uc801\uc778 \uc790\uc6d0 \ub9f5\uc744 \ubc1b\uc544 \uccab \ubc88\uc9f8 \uc801\ud569\uc131 \uac80\uc0c9\uc73c\ub85c \ube14\ub85d\uc744 \ucc3e\uace0, \uc778\uc811\ud55c \ube48 \uacf5\uac04\uc744 \ubcd1\ud569\ud588\ub2e4. \uba54\uc778 \uba54\ubaa8\ub9ac\uc640 \ub514\uc2a4\ud06c \uc2a4\uc651 \uacf5\uac04\uc744 \uac01\uac01 \ub2e4\ub978 \ub2e8\uc704\ub85c \uad00\ub9ac\ud558\uba70 \uc720\uc5f0\uc131\uc744 \ud655\ubcf4\ud588\ub2e4.<\/p>\n<p>\ucd08\uae30 diff \uc720\ud2f8\ub9ac\ud2f0\uc5d0\uc11c\ub3c4 \uc720\uc0ac\ud55c \uc120\ud615 \ud560\ub2f9 \ud328\ud134\uc774 \uad00\ucc30\ub41c\ub2e4. \ucc98\ub9ac \ud6c4 \ub864\ubc31\ucc98\ub7fc \uba54\ubaa8\ub9ac\ub97c \uc7ac\uc0ac\uc6a9\ud558\ub294 \uae30\ubc95\uc774 \uc801\uc6a9\ub418\uc5c8\ub2e4. \uc774\ub7ec\ud55c \uc811\uadfc\ubc95\uc740 \uc774\ud6c4 C++\uc758 new \uc5f0\uc0b0\uc790\ub098 \uc9c0\uc5ed \uae30\ubc18 \ud560\ub2f9 \uac1c\ub150\uc73c\ub85c \uc774\uc5b4\uc9c0\ub294 \uc5ed\uc0ac\uc801 \ub9e5\ub77d\uc744 \uc81c\uacf5\ud55c\ub2e4.<\/p>\n<p>\ud558\uc9c0\ub9cc \uc774\ub7ec\ud55c \ud6a8\uc728\uc801\uc778 \ubc29\ubc95\ub4e4\uc774 \ub110\ub9ac \ucc44\ud0dd\ub418\uc9c0 \uc54a\uc740 \uc774\uc720\ub294 \uc5ec\uc804\ud788 \ub17c\uc7c1\uac70\ub9ac\ub2e4. \ub9ce\uc740 \ud504\ub85c\uadf8\ub7a8\uc774 \uc9c1\uc811 malloc()\uc744 \ud638\ucd9c\ud558\uba70 \ubc18\ubcf5\uc801\uc778 \ud06c\uae30 \uacc4\uc0b0\uacfc \uc624\ub958 \uac80\uc0ac\ub97c \uc218\ud589\ud588\ub2e4. \uc544\ub808\ub098\ub098 \uc9c0\uc5ed \ud560\ub2f9\uc758 \uc7a5\uc810\uc774 \ucd08\uae30\ubd80\ud130 \uc874\uc7ac\ud588\uc74c\uc5d0\ub3c4 \ud45c\uc900\ud654\ub418\uc9c0 \ubabb\ud55c \uc148\uc774\ub2e4.<\/p>\n<p>\uc774\ubc88\uc5d0 \uacf5\uac1c\ub41c \uc720\ub2c9\uc2a4 V4 \ud14c\uc774\ud504\ub294 \uc9c0\ub09c\ud574 \uc800\uc7a5\uc2e4 \uccad\uc18c \uc911 \ubc1c\uacac\ub41c \uac83\uc73c\ub85c, \uc57d 50\uc5ec \ub144 \uc804\uc778 1973\ub144 11\uc6d4 \ub9b4\ub9ac\uc2a4 \ubc84\uc804\uc774\ub2e4. \uacfc\uac70\uc5d0\ub294 \uc644\uc804\ud788 \uc18c\uc2e4\ub41c \uac83\uc73c\ub85c \uc5ec\uaca8\uc84c\ub358 \uc790\ub8cc\ub2e4. \ud604\uc7ac\uae4c\uc9c0\uc758 \ubd84\uc11d\uc740 \uc8fc\ub85c \ucef4\ud30c\uc77c\ub7ec \ub3c4\uad6c\uc640 \ucee4\ub110\uc758 \ucc28\uc774\uc810\uc5d0 \uc9d1\uc911\ub418\uc5b4 \uc788\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1973\ub144 \uc720\ub2c9\uc2a4 V4\uc758 C \ucef4\ud30c\uc77c\ub7ec \ub3c4\uad6c\uc5d0\uc11c \ubc1c\uacac\ub41c \uc120\ud615 \ud560\ub2f9\uc790 \uad6c\uc870\uc640 sbrk() \uae30\ubc18 \uba54\ubaa8\ub9ac \uad00\ub9ac \ud2b9\uc9d5\uc744 \uc0b4\ud3b4\ubcf8\ub2e4. \ud68c\uc218\ub41c \ud14c\uc774\ud504\ub97c \ud1b5\ud574 \uacf5\uac1c\ub41c \uc6d0\uc2dc \ucf54\ub4dc\uac00 \ubcf4\uc5ec\uc8fc\ub294 \ub2f9\uc2dc\uc758 \uc790\uc6d0 \ucc98\ub9ac \uad00\ud589\uc744 \uc815\ub9ac\ud588\ub2e4.<\/p>\n","protected":false},"author":2,"featured_media":49264,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jore2_quality_policy":"people-first-v2","footnotes":""},"categories":[405],"tags":[32592,32593,30178,12046,2089],"class_list":["post-49265","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-405","tag-32592","tag-32593","tag-30178","tag-12046","tag-c"],"featured_image_urls":{"full":["https:\/\/jore2.com\/wp-content\/uploads\/2026\/11\/news-23028-the-lost-malloc.png",1200,630,false],"thumbnail":["https:\/\/jore2.com\/wp-content\/uploads\/2026\/11\/news-23028-the-lost-malloc-150x150.png",150,150,true],"medium":["https:\/\/jore2.com\/wp-content\/uploads\/2026\/11\/news-23028-the-lost-malloc-300x158.png",300,158,true],"medium_large":["https:\/\/jore2.com\/wp-content\/uploads\/2026\/11\/news-23028-the-lost-malloc-768x403.png",640,336,true],"large":["https:\/\/jore2.com\/wp-content\/uploads\/2026\/11\/news-23028-the-lost-malloc-1024x538.png",640,336,true],"1536x1536":["https:\/\/jore2.com\/wp-content\/uploads\/2026\/11\/news-23028-the-lost-malloc.png",1200,630,false],"2048x2048":["https:\/\/jore2.com\/wp-content\/uploads\/2026\/11\/news-23028-the-lost-malloc.png",1200,630,false],"morenews-large":["https:\/\/jore2.com\/wp-content\/uploads\/2026\/11\/news-23028-the-lost-malloc-825x575.png",825,575,true],"morenews-medium":["https:\/\/jore2.com\/wp-content\/uploads\/2026\/11\/news-23028-the-lost-malloc-590x410.png",590,410,true]},"author_info":{"info":["\uc724\uc9c0\ud6c4"]},"category_info":"<a href=\"https:\/\/jore2.com\/?cat=405\" rel=\"category\">\ub274\uc2a4<\/a>","tag_info":"\ub274\uc2a4","comment_count":"0","_links":{"self":[{"href":"https:\/\/jore2.com\/index.php?rest_route=\/wp\/v2\/posts\/49265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jore2.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jore2.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jore2.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jore2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49265"}],"version-history":[{"count":0,"href":"https:\/\/jore2.com\/index.php?rest_route=\/wp\/v2\/posts\/49265\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jore2.com\/index.php?rest_route=\/wp\/v2\/media\/49264"}],"wp:attachment":[{"href":"https:\/\/jore2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jore2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jore2.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}