LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-19-2005, 01:13 PM   #1
Thinking
Member
 
Registered: Oct 2003
Posts: 249

Rep: Reputation: 30
what's the difference between 32bit/64bit architecture?


hiho@ll

shortly i'll explain what i know and think about the topic:
a cpu has registers to work with
on 32bit these registers are a maximum of 32bit in size
on 64bit they are 64bit in size
so they can store larger values which means they can mostly (for example) be faster or use better hardware (larger harddisk, more ram)

why i ask the question:
if you compile a prog for example a C prog which uses integer
the int value on a 32bit architecture will be 32bit in size on 64bit it's 64bit
ok
now what if i write a prog where i know i don't need to store creater values than 32bit

if i compile the prog on a 32bit architecture, will it run on 64bit?
if not, why? i think the cpu registers are just bigger, why shouldn't work 32bit code on a 64 machine?

maybe it's simple and my direction of thinking is right
but i don't think so, that's why i'm asking ;-)
thx@ll
 
Old 08-19-2005, 01:24 PM   #2
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
I think it will depend on the OS, and how the OS is configured to run. I see your logic - but I know for sure that there are 64bit systems that can't touch 32bit code - and others that will pad it, or alter it to make it compatible. I'm sure the new version of Windows will allow for this - so the public doesn't freak out when they can't use something cheesy - like Corel and what not.

I believe that some x86_64 Distros will allow you to run 32bit binaries as well.
 
  


Reply



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
can 64bit processor run both 64bit and 32bit computers? DJOtaku Linux - General 4 09-08-2005 08:14 PM
32bit on 64bit paralysis Linux From Scratch 2 06-02-2005 03:19 PM
32Bit or 64Bit? bchivers Mandriva 9 05-22-2005 12:28 PM
Difference between 32bit and 64bit SuSE? Anthony1uk SUSE / openSUSE 4 03-05-2005 10:21 AM
32bit to 64bit kirk1975 Linux - Newbie 1 10-20-2004 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:49 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