LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-10-2010, 09:47 AM   #1
wagaboy
Member
 
Registered: Jun 2010
Distribution: Ubuntu 10.04, Cent OS 5.5, CLE3
Posts: 51

Rep: Reputation: 21
what is 'architecture' in 'binary for an architecture'?multiple architecture support?


I have come across several websites that have compiled binaries available for download. Target architecture is also specified with these binaries, which brings to my question: what decides an architecture ?
I'm guessing it's OS+CPU, provided all the libraries for binary are available. Is this right or is it more than just these two, like GPU, motherboard, etc...

At the risk of being scorned, I'd like to ask another question which is somewhat related to another thread that I posted earlier(link): Is is possible to have a binary which supports multiple architecture.
I have googled and read some articles about "fat binaries", but it seems it is still a theory, and I haven't seen any implementations.
 
Old 07-10-2010, 10:34 AM   #2
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 2,963

Rep: Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768
Architecture is purely the type of CPU. i386 is any Intel-compatible from the 386 onwards, i686 is a Pentium-compatible, x86_64 is a 64-bit Intel-compatible, and so on.

The nearest thing to multi-architecture binaries would be running an i386 version on i686, or 32-bit software on a 64-bit system. You couldn't have the same binary software for two unrelated systems; the same number means completely different instructions to 1386 and ARM chips, for example.
 
Old 07-10-2010, 11:18 AM   #3
wagaboy
Member
 
Registered: Jun 2010
Distribution: Ubuntu 10.04, Cent OS 5.5, CLE3
Posts: 51

Original Poster
Rep: Reputation: 21
Quote:
Architecture is purely the type of CPU. i386 is any Intel-compatible from the 386 onwards, i686 is a Pentium-compatible, x86_64 is a 64-bit Intel-compatible, and so on.
I think architecture is dependent on the OS running on the system. For e.g., 'uname -a' returns different architecture depending on whether the OS is 32 or 64 bit. So I'm sure it has to be at least OS+CPU.

UPDATE:
Does architecture refer to the signature of 'file <binary>' cmd ?
e.g.
Code:
$ file sqlite3 
sqlite3: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped
Does kernel version also decide the architecture ?

Quote:
the same number means completely different instructions to 1386 and ARM chips, for example.
Is it possible group binaries for different architectures into a single binary ?

Last edited by wagaboy; 07-10-2010 at 11:27 AM.
 
  


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
spport multiple MSI for pci device on Nehalem architecture robvoo Linux - Kernel 4 08-21-2013 05:26 AM
building rpms for multiple os and architecture ravi_scorp Linux - Software 1 09-16-2009 09:05 AM
Support for NUMA in x86_32 architecture Shreyasdm Linux - Software 0 01-05-2009 01:39 AM
Linux gains new architecture support DragonSlayer48DX Linux - News 0 03-28-2008 04:19 PM
FlashPlayer & SUSE 10.0 64bit architecture support riba43 Suse/Novell 8 11-09-2005 06:29 PM


All times are GMT -5. The time now is 04:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration