> I'm searching information on writing inline assembly routines in Green
> Hills Multi 4.0.7 environment. Is there a tutorial somewhere or any
> other source of information ?
> My problem is that I very often don't understand why the compiler
> compiles the code but the linker complains about unresolved externals.
> Sometimes If receive compiler errors like "No storage mode
> specification line matched in asm procedure : set_TBL". What does it
> mean ?
> Could anyone be so kind to give me some examples ? I mostly only want
> to read/write some processor registers or do some low level init (BAT
> registers ...)
If you look through the GHS manuals there's a section on this. They have
a truly horrible implementation of inline assmebly. You have to put all
sorts of weird directives in the asm routine depending on how the code
is going to be be built, otherwise you get link errors as you describe
and various other problems.
Here's an example that works for me - YMMV as they say...
asm double __frsqrte (double x)