LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-04-2006, 07:38 AM   #1
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Rep: Reputation: 30
64bit silly question


ok.
Maybe a programming or hardware question .
Sorry Not sure.

o.k

Say I'm running a 64 bit distro.
Obviuosly 32 bit binarys will run but not utilise the full capacity of the processor ?!??
Whe you compile a program from source will that now be compiled in a manner that will be more native to the processor enabling 64nit support ?



thnks in advance.
 
Old 01-04-2006, 09:16 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Depends on the source, if it's not 64-bit compliant then it may fail.
Ask the author(s) of the source to be sure.
 
Old 01-04-2006, 11:27 AM   #3
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Original Poster
Rep: Reputation: 30
really?
so code written for i386 will not necessarily compile and run on 64bit architecture that runs a 64 bit op system?!!!
 
Old 01-04-2006, 06:28 PM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
zomg architectures!!!1

Course not, it would be a pretty poorly written program if it didn't but thats not to say there aren't a whole lot of them out there
 
Old 01-04-2006, 08:18 PM   #5
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
very few programs even benefit from 64-bits. So, its not like they aren't using the full processor capacity, its that it doesnt need 64-bit operations to do the equivalent of 32-bit work.

take this math operation:

5x5-1+2=21

even a 8-bit processor could do that, its not like 64-bits would do much difference, when it only uses 8.
 
Old 01-04-2006, 08:31 PM   #6
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Intel and AMD 64 bit processors have a 32bit instruction set as well. They should run/compile all 32 bit software without any issue... In theory, it will run no faster or slower than it would on a 32 bit processor of the same speed, asssuming it's not using 64 bit words or addresses (which it probably isn't).
 
Old 01-05-2006, 07:27 AM   #7
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by BrianK
Intel and AMD 64 bit processors have a 32bit instruction set as well. They should run/compile all 32 bit software without any issue... In theory, it will run no faster or slower than it would on a 32 bit processor of the same speed, asssuming it's not using 64 bit words or addresses (which it probably isn't).
right


thats what I thought.

My collegue at work said that the architecture of these systems are different.
Thus the buses between the processor and the system are larger thus enabling data to be put through quicker.


But if an operation only asks to put write n bytes of data its only going to write n bytes of data no matter how large the bus is right ??
 
Old 01-05-2006, 07:50 AM   #8
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Original Poster
Rep: Reputation: 30
http://www.softwaretipsandtricks.com...bit-processors


just to back up what has already been said.

thnks gents
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Silly question huble General 5 02-17-2005 02:03 AM
Silly Question koodoo Linux - Newbie 2 02-14-2005 07:20 AM
Really silly question... godhugh Linux - Newbie 1 01-04-2005 11:29 AM
silly question Kilahchris Linux - Newbie 5 09-09-2004 10:15 PM
Silly Question ? paladins_r_1 Linux - Newbie 9 10-20-2003 07:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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