{"width":"100%","published":"2007-01-10 00:48:00","url":"https://boxnos.hatenablog.com/entry/20070110/1168357680","author_name":"tanakaBox","provider_url":"https://hatena.blog","version":"1.0","image_url":null,"title":" cygwin\u3067GAS\u306e\u7df4\u7fd2","blog_title":"\u30dc\u30af\u30ce\u30b9","height":"190","provider_name":"Hatena Blog","categories":["GCC"],"author_url":"https://blog.hatena.ne.jp/tanakaBox/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20070110%2F1168357680\" title=\" cygwin\u3067GAS\u306e\u7df4\u7fd2 - \u30dc\u30af\u30ce\u30b9\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","description":"cygwin\u4e0a\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u51fa\u6765\u305f\u3002ex1.s .text .global main main: movl $1, %eax movw $0xffff, %ax movb $0b01010101, %ah movl $0, %eax ret Makefile target = ex1 default: $(target) ./$(target) $(target) : $(target).obj ld $< -o $@ -e main %.obj : %.s as $< -o $@ \u3068\u308a\u3042\u3048\u305a\u4f55\u3082\u3057\u306a\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002Cygwin or Windows\u306e\u5834\u5408\u3001$ gcc hoge.s -o ho\u2026","blog_url":"https://boxnos.hatenablog.com/"}