Inline::ASM ???

Inline Assembler in Perl, geht nicht? Geht doch:

use Inline C;

$a = asmadd(6,19);
print “$a\n”;

__END__
__C__

int asmadd( int a, int b){
asm( “addl %%ebx, %%eax;\n”
: “=a” (a)
: “a” (a), “b” (b)
);
return a;

}

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.