Skip to main content

Timeline for Is my OS 32-bit or 64-bit?

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Jun 22, 2017 at 0:09 comment added David Schwartz @Downgoat But there seem to be specific rules here that override that general assumptions permitted. "Please note that a 32 bit program running on a computer with a 64 bit operating system should output "64". You can assume that users will use 64 bit software whenever possible." (Which, honestly, I'm having a hard time making sense of.)
Jun 22, 2017 at 0:06 comment added Downgoat @DavidSchwartz it works fine on my linux box unless I'm misunderstanding, but on PPCG we can assume an unmodified environment in terms of user changing the arch
Jun 21, 2017 at 23:24 comment added David Schwartz This returns the OS architecture reported to the process, not the actual OS architecture. So this does not work on Linux. (Punch "setarch" into your favorite search engine.)
Jun 20, 2017 at 15:15 history edited Downgoat CC BY-SA 3.0
deleted 4 characters in body
Jun 20, 2017 at 10:21 comment added GilZ You can shave off 7 bytes if you're using the REPL and os instead of process: os.arch().slice(1)
Jun 20, 2017 at 6:16 comment added Ken Y-N Gives me '32' on 32-bit Windows, so it does appear to work.
Jun 19, 2017 at 22:35 comment added Octopus +1, but I suppose a 64bit arch could be running a 32bit OS though
Jun 19, 2017 at 20:43 history answered Downgoat CC BY-SA 3.0