는 인라인 어셈블리


#include <stdio.h>


__declspec(naked) int main(void) {

static const char *fmt = "%d";

__asm {

xor edx, edx

mov ecx, 30

loop_start:

add edx, ecx

loopz loop_start

push edx

push fmt

call printf

add esp, 8

xor eax, eax

ret

}

}