Page 1 of 1

/point=64=arg for clang

Posted: Mon Dec 04, 2023 10:59 am
by joukj
Hi,

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

Jouk

Re: /point=64=arg for clang

Posted: Mon Dec 04, 2023 12:11 pm
by jreagan
-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

Re: /point=64=arg for clang

Posted: Tue Dec 05, 2023 1:24 am
by joukj
Thanks


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



Jouk