cxx(clang) and 32/64 bits pointers

OpenVMS x86 native compilers, cross compilers news and questions.
Post Reply

Topic author
psk
Member
Posts: 5
Joined: Thu Nov 21, 2019 4:48 am
Reputation: 0
Location: Sweden
Status: Offline

cxx(clang) and 32/64 bits pointers

Post by psk » Wed Mar 01, 2023 4:19 am

Hi,

The code I'm compiling has a lot of descriptors defined, mostly using the dsc$descriptor_s macro.
When I just compile it get warnings, "cast from long pointer to short pointer will lose data", as expected, but how can I compile the code with 32-bits pointers? I have tried cxx /pointer=32 and clang -pointer-size=32 but it makes no difference(?).
I really don't want to change the code to the dsc64$... macros and perhaps somebody in the forum have a solution?

Thanks
Peter

Post Reply