{"height":"190","title":"1\u30d7\u30ed\u30bb\u30b9\u3067malloc\u3067\u304d\u308b\u9650\u754c\u3092\u8abf\u3079\u3066\u307f\u308b","published":"2011-11-08 20:51:35","url":"https://takanoo.hatenadiary.org/entry/20111108/1320753095","type":"rich","width":"100%","blog_title":"takanoo\u306e\u65e5\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakanoo.hatenadiary.org%2Fentry%2F20111108%2F1320753095\" title=\"1\u30d7\u30ed\u30bb\u30b9\u3067malloc\u3067\u304d\u308b\u9650\u754c\u3092\u8abf\u3079\u3066\u307f\u308b - takanoo\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"takanoo","provider_url":"https://hatena.blog","image_url":null,"description":"32bit OS\u3060\u3068\u30011\u30d7\u30ed\u30bb\u30b9\u3067malloc\u3067\u304d\u308b\u9650\u754c\u3063\u3066\u3069\u306e\u304f\u3089\u3044\u306a\u3093\u3060\u308d\u3046\u3068\u601d\u3063\u3066\u3001\u8abf\u3079\u3066\u307f\u305f\u3002 \u3053\u3093\u306a\u611f\u3058\u3067\u3001\u30e1\u30ac\u30d0\u30a4\u30c8\u5358\u4f4d\u3067malloc\u3092\u3057\u3066\u3001\u5931\u6557\u3057\u305f\u3089\u300c\u5931\u6557\u300d\u3066\u51fa\u529b\u3057\u3066\u3001\u6210\u529f\u3057\u305f\u3089\u5373free\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u307f\u305f\u3002 $ cat mallocTest.c #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]){ int input; input = atoi(argv[1]); char *buf = NULL; buf = (char *)malloc(input * 1024 * 102\u2026","categories":[],"blog_url":"https://takanoo.hatenadiary.org/","provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/takanoo/"}