in reply to Re^6: Module for 128-bit integer math?
in thread Module for 128-bit integer math?
One thing that might be useful to me if you have the time, is an assembler dump of the sources. Can gcc do that?
gcc -S a.c
And if it can, would it show the actual operations involved, or just calls to system library routines?
It provides the assembler code for the code you are compiling, which would include inlined functions, but I don't see why it would disassemble existing objects.
$ cat a.c #include <stdio.h> int main() { printf("Hello, World!\n"); return 0; }
$ cat a.s .file "a.c" .section .rodata .LC0: .string "Hello, World!" .text .globl main .type main, @function main: leal 4(%esp), %ecx andl $-16, %esp pushl -4(%ecx) pushl %ebp movl %esp, %ebp pushl %ecx subl $4, %esp movl $.LC0, (%esp) call puts movl $0, %eax addl $4, %esp popl %ecx popl %ebp leal -4(%ecx), %esp ret .size main, .-main .ident "GCC: (Debian 4.3.2-1.1) 4.3.2" .section .note.GNU-stack,"",@progbits
Are they inlined?
I can't try to install the dev gcc needed for Math::Int128 at this moment.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: Module for 128-bit integer math?
by salva (Canon) on Feb 09, 2011 at 09:55 UTC | |
by BrowserUk (Patriarch) on Feb 09, 2011 at 20:17 UTC | |
by ikegami (Patriarch) on Feb 09, 2011 at 20:23 UTC | |
Re^8: Module for 128-bit integer math?
by BrowserUk (Patriarch) on Feb 09, 2011 at 04:04 UTC | |
by ikegami (Patriarch) on Feb 09, 2011 at 05:34 UTC | |
by BrowserUk (Patriarch) on Feb 09, 2011 at 18:22 UTC | |
by ikegami (Patriarch) on Feb 09, 2011 at 19:28 UTC | |
by BrowserUk (Patriarch) on Feb 09, 2011 at 20:23 UTC |
In Section
Seekers of Perl Wisdom