Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

GNU inline assembler + return value

GNU inline assembler + return value

2005-07-11 by xjag74

Hi,

I wonder why GCC don't compile that simple code:

static inline unsigned StackPointerValue(void)
{
unsigned long val;
asm volatile (" str R13, retval");
return val;
}

When I try to compile the following error appears:
"Internal_relocation (type: OFFSET_IMM) not fixed up"

What does that mean? How can I get that running?

Best regards
XJAG74

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.