/point=64=arg for clang

Post Reply

Topic author
joukj
Master
Posts: 175
Joined: Thu Aug 27, 2020 5:50 am
Reputation: 0
Status: Offline

/point=64=arg for clang

Post by joukj » Mon Dec 04, 2023 10:59 am

Hi,

I wonder what the clang unix style equivalent of /point=64=arg is. (-pointer=64=arg seems not to work)

Jouk


jreagan
VSI Expert
Master
Posts: 139
Joined: Tue Dec 01, 2020 8:40 am
Reputation: 0
Status: Offline

Re: /point=64=arg for clang

Post by jreagan » Mon Dec 04, 2023 12:11 pm

-pointer-size=argv64

Code: Select all

$ cxx/verbose/pointer=64=arg dka300:[jreagan]hw.cxx
X86VMS$DKA0:[SYS0.SYSCOMMON.][SYSEXE]CXX$COMPILER.EXE;1 --std=gnu++98 -pointer-size=argv64 -extern-model=relaxed_refdef -Wno-no
nportable-include-path -x c++ -D__RTTI DKA300:[jreagan]hw.cxx;6
It is in the release notes
-pointer-size={long|short|64|32|argv64}
* "argv64" means:
- The main argument argv will be an array of 64-bit pointers. The default
is an array of 32-bit pointers
- Enables processing of '#pragma pointer_size'
- Sets the initial default pointer size to 64-bit for translation unit
- Predefines the preprocessor macro __INITIAL_POINTER_SIZE to 64
* "long" or "64" means:
- Enables processing of '#pragma pointer_size'
- Sets the initial default pointer size to 64-bit for translation unit
- Predefines the preprocessor macro __INITIAL_POINTER_SIZE to 64
* "short" or "32" means:
- Enables processing of '#pragma pointer_size'
- Sets the initial default pointer size to 32-bit for translation unit
- Predefines the preprocessor macro __INITIAL_POINTER_SIZE to 32
Last edited by jreagan on Mon Dec 04, 2023 12:14 pm, edited 1 time in total.


Topic author
joukj
Master
Posts: 175
Joined: Thu Aug 27, 2020 5:50 am
Reputation: 0
Status: Offline

Re: /point=64=arg for clang

Post by joukj » Tue Dec 05, 2023 1:24 am

Thanks


I tried to find it with "clang --help", but there the arg64 is not listed.



Jouk
Last edited by joukj on Tue Dec 05, 2023 3:01 am, edited 2 times in total.

Post Reply