LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-08-2011, 02:04 AM   #1
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Slackware and Fedora
Posts: 234

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,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
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
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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



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

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

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