Re: How call from C++ thru function pointer to assembler?

2012-07-17 Thread Charles Mills
: Monday, July 16, 2012 9:57 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: How call from C++ thru function pointer to assembler? On 17/07/2012 11:35 AM, Charles Mills wrote: David, thanks, will try again tomorrow. Does it perhaps want to factor differently? Perhaps something more like (*extern

How call from C++ thru function pointer to assembler?

2012-07-16 Thread Charles Mills
Does anyone know the answer to this? I have an assembler function whose address I know at run-time in C++. I define and store it like this void __cdecl (*entryPoint)(const char *); entryPoint = (void (__cdecl *)(const char *))(myVoidStar); printf(entryPoint is %p\n, entryPoint); Printf prints

Re: How call from C++ thru function pointer to assembler?

2012-07-16 Thread David Crayford
I suggest investigating the CALLBACKANY compiler option. On 17/07/2012, at 8:13 AM, Charles Mills charl...@mcn.org wrote: Does anyone know the answer to this? I have an assembler function whose address I know at run-time in C++. I define and store it like this void __cdecl

Re: How call from C++ thru function pointer to assembler?

2012-07-16 Thread David Crayford
[mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of David Crayford Sent: Monday, July 16, 2012 5:19 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: How call from C++ thru function pointer to assembler? I suggest investigating the CALLBACKANY compiler option. On 17/07/2012, at 8:13 AM, Charles Mills charl

Re: How call from C++ thru function pointer to assembler?

2012-07-16 Thread Charles Mills
Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of David Crayford Sent: Monday, July 16, 2012 6:09 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: How call from C++ thru function pointer to assembler? Why the __cdecl instead of extern OS? On 17/07/2012, at 8:34 AM, Charles Mills charl

Re: How call from C++ thru function pointer to assembler?

2012-07-16 Thread Charles Mills
- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Charles Mills Sent: Monday, July 16, 2012 5:14 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: How call from C++ thru function pointer to assembler? Does anyone know the answer to this? I have an assembler function

Re: How call from C++ thru function pointer to assembler?

2012-07-16 Thread Charles Mills
Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Charles Mills Sent: Monday, July 16, 2012 5:14 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: How call from C++ thru function pointer to assembler? Does anyone know the answer to this? I have