vccw
vccw copied to clipboard
CentOS 64-bit option?
Operating System: Windows 10 Vagrant Version: 1.9.2 Virtual Box Version: 5.1.14
I have a package that requires a 64-bit version of CentOS. I searched and found that some people had an option to change the OS to a 64-bit version before provisioning. Is this possible?
The link I had the described this process can be found here: https://firegoby.jp/archives/5542 (note that it is in Chinese, but I was able to translate it with Google).
Thanks!
Sorry, we don't have enough time to develop it. Thanks!
Will you consider leaving the issue open and mark it as "help wanted" ? I think this is a feature many WordPress developers would be interested in, and the community would probably submit a PR after some time and deliberation.
Sounds good. 😄
Luckily, gcc man page directed me to the ‘-m32’ and ‘-m64’ options. These options generate code for 32-bit or 64-bit environments, respectively.
The 32-bit environment sets int, long and pointer to 32 bits and generates code that runs on any i386 system. The 64-bit environment sets int to 32 bits and long and pointer to 64 bits and generates code for AMD’s x86-64 architecture. You can pass -m64 or -m32 options as follows to Gnu gcc
For 32 bit version:
$ gcc -m32 -o output32 hello.c
For 64 bit version :
$ gcc -m64 -o output64 hello.c
Run it as follows:
$ ./output32
Output:
Long int size is 4 bytes long!
Now let us see 64 bit output:
$ ./output64
Long int size is 8 bytes long!