[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2 questions



> i have a couple questions im hoping someone can help me out with, the
> first is how can you tell if you are working in 64bit mode? from what ive
> read there is 32bit userland so something of that sort, but where does the
> 64bit stuff come in and how can you tell if you are actually operating at
> 64bit?
The default set up for Debian (stable at least) is to run a 64 bit
kernel and 32 bit userland on Sparc v9 processors.  Unless you have
binaries that are specifically compiled for 64 bit operation then your
programs will be 32 bit.  A program like this:

#include <stdio.h>

int main (int argc, char **argv) {
	printf("%d\n",sizeof(int));
	return 1;
}

Should tell you if you've compiled things correctly for 64 bit.  Be
warned though that for almost all applications you probably don't want
64 bit mode.  A neat summary article is:

http://www.osnews.com/story.php?news_id=5768

HTH

Cheers,
 - Martin
 
-- 
Martin
inkubus@interalpha.co.uk
"Seasons change, things come to pass"



Reply to: