Inline::ASMInline::ASM is a module to write Perl subroutines in assembler. | |
Download |
Inline::ASM Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Neil Watkiss
- Publisher web site:
- http://search.cpan.org/~neilw/Inline-ASM-0.03/ASM.pod
Inline::ASM Tags
Inline::ASM Description
Inline::ASM is a module to write Perl subroutines in assembler. Inline::ASM is a module to write Perl subroutines in assembler.SYNOPSIS print "9 + 16 = ", add(9, 16), "n"; print "9 - 16 = ", subtract(9, 16), "n"; use Inline ASM => 'DATA', AS => 'as', PROTO => {add => 'int(int,int)'}; use Inline ASM => 'DATA', AS => 'nasm', ASFLAGS => '-f elf', PROTO => {subtract => 'int(int,int)'}; __END__ __ASM__ .text .globl add add: movl 4(%esp),x addl 8(%esp),x ret __ASM__ GLOBAL subtract SECTION .text subtract: mov eax, sub eax, retInline::ASM allows you to write Perl subroutines in assembly language. Of course, many C compilers allow you to put assembly right in your C code, so this module does not provide any new functionality. It does, however, provide a feature most C compilers don't: you can mix different assembler syntaxes in the same file!Requirements:· Perl Requirements: · Perl
Inline::ASM Related Software