Return to Snippet

Revision: 9855
at November 26, 2008 00:13 by bedomax


Initial Code
#include <stdio.h>
 
int main(void)
{
        int foo = 10, bar = 15;
        asm("addl  %%ebx,%%eax"
        :"=a"(foo)
        :"a"(foo), "b"(bar)
        );
        printf("foo+bar=%d\n", foo);
        return 0;
}

Initial URL

                                

Initial Description
Código en C con Ensamblador para GCC

Initial Title
Assembly in C++ with GCC  Inline

Initial Tags
c

Initial Language
C