Suppose I have a 64-bit XPLINK C program that invokes an assembler subroutine using:
#pragma linkage(ASMSUB, OS_NOSTACK) What linkage would the 64-bit assembler subroutine use? How does the #pragma linkage affect the linkage convention? Would I use EDCXPRLG? I can't use standard linkage because I need to save off the double word registers. What if that 64-bit Assembler language subroutine then copied the input parameters from 64- bit to 31-bit, switched into 31 bit mode and called a 31- bit non-LE non-XPLINK assembler subroutine? Wouldn't the linkage in that case be standard linkage? Janet >You can with a #pragma tell C/C++ "This program is XPLINK in general but call >this one routine using non-XPLINK conventions" (and perhaps vice >versa) but >there is said to be a significant performance penalty, so if your API is >intended to be called "a lot" you would need to consider that. >Charles ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
