Re: Codegolf: Write the shortest code you can
I'm coming.
Patashu, you need to come with me, too.
I'm coming.
Patashu, you need to come with me, too.
main(){puts("%s", gets());}

.file "helloworldgolf.c" .section .rodata .LC0: .string "Hello, world!" .text .globl main .type main, @function main: pushl %ebp movl %esp, %ebp andl $-16, %esp subl $16, %esp movl $.LC0, (%esp) call puts leave ret .size main, .-main .ident "GCC: (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5" .section .note.GNU-stack,"",@progbits
.file "helloworldformatted.c" .section .rodata .LC0: .string "Hello, world!" .text .globl main .type main, @function main: pushl %ebp movl %esp, %ebp andl $-16, %esp subl $16, %esp movl $.LC0, (%esp) call puts leave ret .size main, .-main .ident "GCC: (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5" .section .note.GNU-stack,"",@progbits
Comment