On 6 December 2013 13:22, Paul Gilmartin <paulgboul...@aim.com> wrote:
>
> Would Metal C remove the need for an Assembler stub?

In this case, probably. But Metal C is not a general substitute for
assembler language, even though you can have inline assembler
statements. Notably, the compiler has several hard-coded ideas of what
registers it can use, e.g. R3  addresses a literal pool, it assumes
that R13 points to a stack, and it may use R10 and R11 for constants.

Unlike PL/X there appears to be no #PRAGMA or the like to tell the
compiler to stop using a register for a while, so if you have a
non-standard linkage (say BASR R10,R11) you will have some trouble.
(Metal C does have "clobber lists" of registers when using the __asm()
construct, but they are so clunky as to be virtually unusable and
unreadable.)

Tony H.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to