Posté par Ender le 13 avril 2012 à 19:24. En réponse au sondage Quel est le meilleur indicateur pour mesurer la taille de sa geekitude ?. Évalué à 2.
echo -e "#include <unistd.h>\n#include <stdio.h>\n\nint main(void)\n{\n write(1, \"42\\\n\", 3);\n remove(\"tmp.c\");\n return(0);\n}" > tmp.c && gcc -pipe -march=native -O2 -O3 -o tmp.c tmp.c && ./tmp.c
Voir meme (linux 64bits):
echo -e "[BITS 64]\n global _start\n\n section .text\n_start:\n mov rdi, 1\n mov rsi, FormatStr\n mov rdx, 3\n mov rax, 1\n syscall\n mov rax, 60\n syscall\n\n section .rodata\n FormatStr db '42',0Ah,0" > tmp.S && nasm -f elf64 tmp.S -o tmp.o && ld tmp.o -o tmp && ./tmp ; rm tmp.S tmp.o tmp
[^] # Re: echo 42...
Posté par Ender . En réponse au sondage Quel est le meilleur indicateur pour mesurer la taille de sa geekitude ?. Évalué à 2.
Voir meme (linux 64bits):