Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
resulted in :use Inline C => Config => BUILD_NOISY => 1; use Inline C => << 'EOC'; void inc_refcnt(SV * sv ) { SvREFCNT_inc(sv); } SV * get_refcnt(SV * sv) { return newSVuv(svREFCNT(sv)); } EOC my $globalVAR = 1; my $refCNT; if ( 1 ) { $refCNT = get_refcnt($globalVAR); $globalVAR++; inc_refcnt($globalVAR); $refCNT = get_refcnt($globalVAR); } else { die; }
and the <>.xs (as well as the <>.c) file looks fine. how does one debug assembler errors?/tmp/ccPL0xed.s: Assembler messages: /tmp/ccPL0xed.s:10: Error: `8(%rdi)' is not a valid 32 bit base/index +expression /tmp/ccPL0xed.s:25: Error: suffix or operands invalid for `movslq' /tmp/ccPL0xed.s:43: Error: `8(%rsp)' is not a valid 32 bit base/index +expression
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inline C : assembler errors!
by syphilis (Archbishop) on Oct 03, 2006 at 01:00 UTC | |
by Anonymous Monk on Oct 03, 2006 at 01:44 UTC | |
by syphilis (Archbishop) on Oct 03, 2006 at 07:17 UTC | |
|
Re: Inline C : assembler errors!
by Fletch (Bishop) on Oct 03, 2006 at 12:15 UTC | |
|
Re: Inline C : assembler errors!
by GrandFather (Saint) on Oct 03, 2006 at 00:24 UTC | |
by Anonymous Monk on Oct 03, 2006 at 00:39 UTC |