LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2006, 03:45 AM   #1
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Rep: Reputation: 48
What is the difference between 32 bit and 64 bit OS?


Recently i got AMD64 3000+. While i was looking for a Linux distro to install on it, i could not find the 64 bit version of the one i wanted to (Auditor)to be precise. Now i have installed Auditor.. though i am aware of the fact that i may not get the performance i should be expecting from a 64 bit processor/OS.
Now my question is.. what exactily is a 64 bit OS? Is it totally different code as to what is writted for 32 bit processors? Or is it the usual code being compiled on a 64 bit machine that makes the difference?
my next query would be.. would it improve the performance of my machine if i recompile the kernel (for Auditor) on the new machine? Following this, i would have a kernel compiled on a 64bit processor but, other applications still would be 32 bit ones. So does this make my system a true 64 bit OS?
 
Old 04-27-2006, 04:07 AM   #2
sw67
Member
 
Registered: Oct 2004
Location: Here
Distribution: Slackware 12, openSuSE 11.0, XP
Posts: 76

Rep: Reputation: 15
A 64-bit OS is one which does exactly what you'd expect... takes full advantage of the 64-bit processor.
So in essence, some of the code is very similar (if not the same), but some of it will be different to cater for 64-bit capabilities and optimizations.

You will probably notice a large difference if you recompile the kernel on the new machine, since it will find and enable 64-bit support.

If you have a 64-bit kernel, you may find that some programs refuse to run if they were compiled for 32-bit; otherwise they will run in native 32-bit mode - in other words ignore the fact it's 64-bit, so you'll get no advantage.

Sam
 
Old 04-27-2006, 04:21 AM   #3
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 643
Blog Entries: 1

Rep: Reputation: 54
More precisely, 64 bit vs 32 bit refers to the size of the various arguments that most machine code instructions for the microprocessor can handle. It also refers to the size of each of the microprocessor's internal registers. My understanding is that the source code for 64 bit is substantially the same as for 32 bit. It is the compiler that is different in that it will now produce 64 bit machine code.
 
Old 04-27-2006, 05:41 AM   #4
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by xode
More precisely, 64 bit vs 32 bit refers to the size of the various arguments that most machine code instructions for the microprocessor can handle. It also refers to the size of each of the microprocessor's internal registers. My understanding is that the source code for 64 bit is substantially the same as for 32 bit. It is the compiler that is different in that it will now produce 64 bit machine code.
well then.. what is the result going to be like in this scenario?

I have a precompiled 32bit Linux distro. I recompile the kernel with the gcc compiler that was already present in the distro (i.e. 32 bit). The kernel would now be compiled enabling the 64 bit flags.. so essentially the kernel should be 64bit.. right?

Something i found in kernel.org that i could not interpret fully..
Quote:
Linux is easily portable to most general-purpose 32- or 64-bit architectures as long as they have a paged memory management unit (PMMU) and a port of the GNU C compiler (gcc) (part of The GNU Compiler Collection, GCC)
can anyone explain what this means in "relatively" layman terms?
Do we need a 64bit gcc compiler?

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 32 bit vs. 64 bit - no difference randon SUSE / openSUSE 7 10-26-2010 09:11 PM
Which version of 32 bit redhat will install on IBM xSeries 366 (64 bit)? Hello123 Linux - Hardware 2 09-14-2005 06:50 AM
What is the difference between downloading from Mirror and Bit Torrents? anindyanuri Linux - Networking 14 04-12-2005 09:45 PM
Graphic Card that Supports displaying 8-bit and 24-bit images simultaneously yrraja Linux - Hardware 2 04-30-2003 07:41 AM
Displaying 8-bit images in 24-bit mode and vice versa yrraja Linux - General 4 04-30-2003 12:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration