asphro | jai fais un bow yesasphro.c ki marche superbement bien
Code :
- #include<stdlib.h>
- #include<stdio.h>
- #define PASAVIE 100000
- #define PROGRAM_NAME "yesdeasphro"
- #define AUTHORS "un boulay ki se touche"
- void usage(int status);
- int main(int argc, char **argv)
- {
- int i;
- int j;
- if(argc == 1)
- {
- usage(0);
- }
- else
- {
- while(j!=PASAVIE)
- {
- for(i=1;i<argc;i++)
- {
- printf("%s",argv[i]);
- printf(" " );
- }
- printf("\n" );
- j++;
- }
-
- }
- printf("ce magnifique program %s est de %s\n",PROGRAM_NAME, AUTHORS);
- return EXIT_SUCCESS;
- }
- void usage(int status)
- {
- if (status == 0)
- printf("l'option a ete non validé par l'option error vxd dans le kernel osx adresse 0x004c, mourrage machine\n" );
- while(1)
- printf("\007" );
- }
|
et asm gcc -S yesaphro.c donne
Code :
- .file "yesasphro.c"
- .section .rodata
- .LC0:
- .string "%s"
- .LC1:
- .string " "
- .LC2:
- .string "\n"
- .LC3:
- .string "un boulay ki se touche"
- .LC4:
- .string "yesdeasphro"
- .align 32
- .LC5:
- .string "ce magnifique program %s est de %s\n"
- .text
- .globl main
- .type main,@function
- main:
- pushl %ebp
- movl %esp, %ebp
- subl $24, %esp
- andl $-16, %esp
- movl $0, %eax
- subl %eax, %esp
- cmpl $1, 8(%ebp)
- jne .L4
- movl $0, (%esp)
- call usage
- jmp .L3
- .L4:
- cmpl $100000, -8(%ebp)
- jne .L6
- jmp .L3
- .L6:
- movl $1, -4(%ebp)
- .L7:
- movl -4(%ebp), %eax
- cmpl 8(%ebp), %eax
- jl .L10
- jmp .L8
- .L10:
- movl -4(%ebp), %eax
- leal 0(,%eax,4), %edx
- movl 12(%ebp), %eax
- movl (%eax,%edx), %eax
- movl %eax, 4(%esp)
- movl $.LC0, (%esp)
- call printf
- movl $.LC1, (%esp)
- call printf
- leal -4(%ebp), %eax
- incl (%eax)
- jmp .L7
- .L8:
- movl $.LC2, (%esp)
- call printf
- leal -8(%ebp), %eax
- incl (%eax)
- jmp .L4
- .L3:
- movl $.LC3, 8(%esp)
- movl $.LC4, 4(%esp)
- movl $.LC5, (%esp)
- call printf
- movl $0, %eax
- leave
- ret
- .Lfe1:
- .size main,.Lfe1-main
- .section .rodata
- .align 32
- .LC6:
- .string "l'option a ete non valid\351 par l'option error vxd dans le kernel osx adresse 0x004c, mourrage machine\n"
- .LC7:
- .string "\007"
- .text
- .globl usage
- .type usage,@function
- usage:
- pushl %ebp
- movl %esp, %ebp
- subl $8, %esp
- cmpl $0, 8(%ebp)
- jne .L12
- movl $.LC6, (%esp)
- call printf
- .L12:
- nop
- .L13:
- movl $.LC7, (%esp)
- call printf
- jmp .L13
- .Lfe2:
- .size usage,.Lfe2-usage
- .ident "GCC: (GNU) 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207)"
|
je degage toutes responsabilité en cas d explosion du processeur
|