I am using windows 7 64-bit. I don't know the gcc installed on this computer is 32-bit or 64-bit. (Windows 7 support both 32- and 64-bit programs).
To check this, we have to type this command. gcc –v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu ........... ........... ...........
You need to cat the /proc/version file. This file identifies the kernel version that is currently running and gcc version used to build the kernel.
Mostly compiler(gcc or clang) of C and C++, nowadays come with default 64-bit version.
You can learn whether it is 64-bit or 32-bit by opening its Settings menu and then by going to Help -> About Google Chrome. This opens a new tab where it tells you its version number and whether it is 64-bit or 32-bit. This approach is also used by other apps and you can use it on any Windows version.
You can inspect the output of gcc -v
or you can use the more direct option -dumpmachine
. The first option allows you to discover if GCC is capable of multilib (so that it can compile both 32 and 64-bit binaries), the second option will only return the default target (if I am not mistaken).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With