【お知らせ】プログラミング記事の投稿はQiitaに移行しました。

2010-02-02から1日間の記事一覧

libcなしでexit (2)

id:n7shi:20100201の続きです。インラインアセンブラをIntel形式にしてみました。 void start() { int m[] = { 0, 1/*EXIT*/, 42, 0, 0, 0, 0, 0, 0 }; asm("mov eax, 0; mov ecx, 3; int 0x21" :: "b"(m)); } # gcc -masm=intel -nostdinc -nostdlib exit.c…