hi Scott,
(posting on behalf of colleagues)
Currently there is not a way for the CSECT name and the main() routine to have the same name. It is not a technical limitation and it is due to the way the code in the compiler (due to shared code between Metal C and regular C/C++ code) was written. if there is enough demand or need, compiler team can look to change it in a future release of the compiler.
------------------------------
Linda Chui
Compilation Technology & Enterprise Products
IBM Canada
------------------------------
Original Message:
Sent: Sat July 10, 2021 03:39 PM
From: Scott Fagen
Subject: Can the main() routine and CSECT share the same name in metal C?
Hello,
I'm trying to figure out if there is a way for the CSECT name and the main() routine to have the same name, for example, the CSECT and entry point names are both XYZENTRY.
Looking at the discussion for #pragma csect and #pragma map would seem to indicate that it is not possible.
If it isn't possible, what is the technical reason. It is certainly possible in an assembler module.
Thanks,
Scott
------------------------------
Scott Fagen
ESM Roving Contributor
------------------------------