Normas del foro

Curso Hacker
Bienvenido(a), Visitante. Favor de ingresar o registrarse.
¿Perdiste tu email de activación? - Noviembre 18, 2008, 08:27:06
Inicio Ayuda Ingresar Registrarse
Visita: Articulos - Juegos Gratis - Da Foros

Comunidad Underground Hispana  |  Programacion  |  Programación  |  Programación Basica  |  Tema: ASSEMBLER Y C 0 Usuarios y 1 Visitante están viendo este tema. « anterior próximo »
Páginas: [1] Ir Abajo Imprimir
Autor Tema: ASSEMBLER Y C  (Leído 592 veces)
MATH MARTIGAN
Visitante
« en: ſeptiembre 24, 2003, 09:18:28 »

HOLA A TODOS,QUE TAL;TENGO UNA SUPER DUDA,
EL ASSEMBLER SE PUEDE COMBINAR CON EL LENGUAJE C?
ES DECIR PUEDO INCORPORAR UNA SUBRUTINA DE ASSEMBLER EN UN PROGRAMA EN C Y VICEVERZA?
GRACIAS
SALUDOS A TODOS Wink
En línea
athe
Visitante


Email
« Respuesta #1 en: ſeptiembre 24, 2003, 11:22:10 »

Si, se puede, pero solo de C a ASM. Esto se hace con la funcion __asm__

Por ej.
Código:
void get_esp() {
__asm__("movl %esp, %eax");
}

Que nos saca la direccion del esp.

Lee la sig. liga:

Necesitas ser usuario para ver los enlaces Crear Usuario  Hacer Sesion

Saludos,
-- flux
En línea
MATH MARTIGAN
Visitante
« Respuesta #2 en: ſeptiembre 25, 2003, 03:22:00 »

 Wink  muchas gracias viejo
En línea
Páginas: [1] Ir Arriba Imprimir 
Comunidad Underground Hispana  |  Programacion  |  Programación  |  Programación Basica  |  Tema: ASSEMBLER Y C « anterior próximo »
Ir a:  


Ranking-Hits
Powered by SMF 1.1.7 | SMF © 2006-2007, Simple Machines LLC