Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k

iI was inspecting the preprocessed output of my C program and happened to look at the header file wordsize.hwordsize.h

itIt is located in /usr/include/i386-linux-gnu/bits/wordsize.h/usr/include/i386-linux-gnu/bits/wordsize.h

the file contains only one macro

#define __WORDSIZE   32

myMy question is, is the wordsize then being decided by the compiler that is installed or does it has something to do with the OS that iI have installed (32 bit or 64 bit) or does it have something to do with the Hardware configuration of my machine.

iI am new to development under Linux.

i was inspecting the preprocessed output of my C program and happened to look at the header file wordsize.h

it is located in /usr/include/i386-linux-gnu/bits/wordsize.h

the file contains only one macro

#define __WORDSIZE   32

my question is, is the wordsize then being decided by the compiler that is installed or does it has something to do with the OS that i have installed (32 bit or 64 bit) or does it have something to do with the Hardware configuration of my machine.

i am new to development under Linux.

I was inspecting the preprocessed output of my C program and happened to look at the header file wordsize.h

It is located in /usr/include/i386-linux-gnu/bits/wordsize.h

the file contains only one macro

#define __WORDSIZE   32

My question is, is the wordsize then being decided by the compiler that is installed or does it has something to do with the OS that I have installed (32 bit or 64 bit) or does it have something to do with the Hardware configuration of my machine.

I am new to development under Linux.

Tweeted twitter.com/#!/StackUnix/status/330610083396460545
Source Link
ArunMKumar
  • 693
  • 2
  • 12
  • 19

default wordsize in UNIX/Linux

i was inspecting the preprocessed output of my C program and happened to look at the header file wordsize.h

it is located in /usr/include/i386-linux-gnu/bits/wordsize.h

the file contains only one macro

#define __WORDSIZE   32

my question is, is the wordsize then being decided by the compiler that is installed or does it has something to do with the OS that i have installed (32 bit or 64 bit) or does it have something to do with the Hardware configuration of my machine.

i am new to development under Linux.