vccw icon indicating copy to clipboard operation
vccw copied to clipboard

CentOS 64-bit option?

Open tfowles opened this issue 7 years ago • 4 comments

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!

tfowles avatar Mar 08 '17 13:03 tfowles

Sorry, we don't have enough time to develop it. Thanks!

miya0001 avatar Mar 08 '17 17:03 miya0001

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.

b-long avatar Mar 17 '17 15:03 b-long

Sounds good. 😄

miya0001 avatar Mar 18 '17 03:03 miya0001

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!

uhlhosting avatar Oct 23 '17 12:10 uhlhosting