no save
Assistance
Achat
News

Forum | programmation
Assembleur et langage machine
jisisv, le dim. 19 janv. 2003 à 04:47:10
Transformer quoi?
Le code source?
Cela dépend des langages et compilateurs, dans le cas de langages compilés bien sûr.
A titre d'exemple en C

jd@horus c]$ cat cls.c
#include <stdio.h>
int main(void)
{
printf("%c[2J", 0x1B);
return 0;
}
[jd@horus c]$ gcc -S cls.c ; cat cls.s
.file "cls.c"
.version "01.01"
gcc2_compiled.:
.section .rodata
.LC0:
.string "%c[2J"
.text
.align 16
.globl main
.type main,@function
main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
subl $8, %esp
pushl $27
pushl $.LC0
call printf
addl $16, %esp
movl $0, %eax
movl %ebp, %esp
popl %ebp
ret
.Lfe1:
.size main,.Lfe1-main
.ident "GCC: (GNU) 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)"


L'exécutable ou la bibliothèque?
Tu utilises un désassembleur ou un debugueur.

Johan Daine


The software said "Requires Windows98, Win2000, or better,
So I installed Unix.
Précédentcool
janv. 03
cool
janv. 03
Suivant
REPONSES
jisisv
janv. 03
cool
janv. 03
cool
janv. 03
cool
janv. 03
sebsauvage
janv. 03
Eleve en détresse
janv. 07
Spiritualitus Cornélius
oct. 07
bobdirM
janv. 08
Version Web
Réalisé par RedShift
no save