{"title":" \u95a2\u6570\u547c\u3073\u51fa\u3057\u3068 %esp \u3068 %ebp","image_url":null,"provider_name":"Hatena Blog","categories":["asm"],"blog_title":"EAGLE \u96d1\u8a18","provider_url":"https://hatena.blog","description":"\u4f8b\u3048\u3070\u3001\u3053\u3093\u306a\u30b3\u30fc\u30c9 /* f1.c */ int add(int a, int b) { return a+b; } int main(int argc, char *argv[]) { int c = add(1, 2); return 0; } \u3092\u66f8\u3044\u3066\u3001 $ gcc -S f1.c -o f1.s \u3068\u3059\u308b\u3068\u3001f1.s \u306f .text .globl _add _add: pushl %ebp movl %esp, %ebp subl $8, %esp movl 12(%ebp), %eax addl 8(%ebp), %eax leave ret .globl _main _main: \u2026","author_name":"eagletmt","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Feagletmt.hatenadiary.org%2Fentry%2F20080712%2F1215841076\" title=\" \u95a2\u6570\u547c\u3073\u51fa\u3057\u3068 %esp \u3068 %ebp - EAGLE \u96d1\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_url":"https://blog.hatena.ne.jp/eagletmt/","version":"1.0","height":"190","published":"2008-07-12 14:37:56","width":"100%","url":"https://eagletmt.hatenadiary.org/entry/20080712/1215841076","type":"rich","blog_url":"https://eagletmt.hatenadiary.org/"}