LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-08-2011, 02:04 AM   #1
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 231

Rep: Reputation: 2
On a low level what are instuction sets?


What I am meaning is, are instructions sets a way of signaling commands or optimizations? I mean because we have binary right? (to do simple things like commands right?)
 
Old 07-08-2011, 02:32 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,395

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
the instruction set is the set of commands that directly interface with the CPU. Not sure how you're relating this to binary though, obviously they are transmitted as digital binary signals, but past that, what do you mean? Plenty of info here http://en.wikipedia.org/wiki/Instruction_set
 
Old 07-08-2011, 06:45 AM   #3
Soadyheid
Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Posts: 762

Rep: Reputation: 126Reputation: 126
Are you talking about what I know as Machine code? Binary is just a numbering system with two states, 0 and 1. It's a bit boring as it stands, so processor commands were usually input in hexadecimal; a numbering system going from 1 to F, er.. counting in 16s. The symbols used are 0123456789abcdef. Processor commands would be generally input as quads on a 32 bit system, i.e. 29C3. You'd have codes which would allow registers within the CPU to be loaded and manipulated with hex data. This all at a very basic level. One code may load a register with a hex number, bits within this register would be set or not set which would affect other stuff happening, etc. you'd need a code just to load the register, another to shift the data left or right by 1 bit, etc,etc. So doing something we'd think was quite simple, like adding 1 + 1, when coded, would be quite complex.
This is why high level programming languages were developed, it made life simpler for humans. It does generate a load of redundant code though; unused libraries, etc. Machine code, when it worked, was very lean, fast, and took little memoryspace. The Sinclair ZX81 only had 1K of memory!

Enough drivel!

Play Bonny!
 
Old 07-08-2011, 09:00 AM   #4
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,366

Rep: Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557
An instruction set is the set of instructions any particular cpu recognizes as instructions.
If a cpu is executing a program, it executes instructions it recognizes. You can't get a cpu to execute an instruction it doesn't recognize.

Optimizations are
1. various hardware design features in a cpu to allow it to run the same code faster.
2. In another context, optimizations (with compiling) mean using more, or the full instruction set of the cpu you are using instead of a more basic subset. Such a compiled program cannot be run on machines that don't have the necessary features in their instruction set.
 
  


Reply

Tags
architecture, binary, cpu, instruction, optimization


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
Is there any more low-level lang then C/C++? Mr. Alex Programming 20 09-07-2010 03:51 PM
low level format juanb Linux - General 1 02-08-2006 03:16 AM
low-level format DanTaylor Linux - Newbie 7 01-22-2006 03:52 PM
low level languages devit Programming 2 05-07-2004 11:16 AM
low level formating sanjith11 Linux - Hardware 3 12-30-2003 07:31 AM


All times are GMT -5. The time now is 02:40 PM.

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