Many of the "long name" functions have 8-byte names as alias's.  To call C 
functions directly with their mixed-case "long name" I believe you have to use 
DLL calling conventions and GOFF object output for the HLASM program, and 
that's another whole can of worms which I believe is also addressed in the 
Programmer's Guide (have not read those chapters myself though).

If you're curious, you will need to do some serious reading.

Note that in John's SKELETON.s assembler source, he is just calling C function 
sprintf() with a VCON for name SPRINTF, so no long-name mangling required there.

Peter

-----Original Message-----
From: IBM Mainframe Assembler List <[email protected]> On Behalf 
Of Dave Clark
Sent: Tuesday, June 6, 2023 12:48 PM
To: [email protected]
Subject: Re: Calling C functions from HLASM

"IBM Mainframe Assembler List" <[email protected]> wrote on 
06/06/2023 12:10:08 PM:
> I really hesitate to mention this, being as it it mine, not really very
> good code, but https://github.com/JohnArchieMckown/utilities-1/find/master 
> 
> And look at SKELETON.s file. Plesse be kind. The entire program is LE
> enabled, with LE startup and termination macros, from IBM.


        I take it that LE takes care of connecting the long C function 
names to the C runtime libraries?


Sincerely,

Dave Clark
-- 
int.ext: 91078
direct: (937) 531-6378
home: (937) 751-3300

Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio  45439  USA
(937) 294-5331




*********************************************************************************************
This email message and any attachments is for use only by the named 
addressee(s) and may contain confidential, privileged and/or proprietary 
information. If you have received this message in error, please 
immediately notify the sender and delete and destroy the message and all 
copies. All unauthorized direct or indirect use or disclosure of this 
message is strictly prohibited. No right to confidentiality or privilege 
is waived or lost by any error in transmission. 
*********************************************************************************************

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.

Reply via email to