The Science Forum - Scientific Discussion and Debate  
 
 Live Chat    FAQ    Search    Usergroups
 
Register  ::  Log in Log in to check your private messages
 
Science Forum Forum Index » Computer Science » What are processors programmed in?

  
 What are processors programmed in? « View previous topic :: View next topic » 
Author Message
LegalEagle
Posted: Wed May 14, 2008 9:14 am    Post subject: What are processors programmed in? Reply with quote

Forum Freshman
Forum Freshman

Joined: 06 Apr 2008
Posts: 30

The progress of microprocessors from single to multi-core is creating a new demand for programmers who can deal with such matters. I'm curious - what's the programming language for microprocessors? Machine language?

http://www.economist.com/displayStory.cfm?source=hptextfeature&story_id=11361185
Back to top
View user's profile Send private message
SuperNatendo
Posted: Wed May 14, 2008 9:45 am    Post subject: Reply with quote

Forum Masters Degree
Forum Masters Degree

Joined: 10 Dec 2007
Posts: 518
Location: Nashville, TN USA

Machine language, which is the binary 1's and 0's the processor actually processes. Assembly language allows for a slightly more human friendly program since it allows the use of hexadecimal and a minimalistic syntax.

Here is a wiki article that goes into much more depth:

http://en.wikipedia.org/wiki/Assembly_language
_________________
“It’s no wonder that truth is stranger than fiction. Fiction has to make sense.” - Mark Twain
Back to top
View user's profile Send private message AIM Address
CShark
Posted: Wed May 14, 2008 3:19 pm    Post subject: Re: What are processors programmed in? Reply with quote

Forum Sophomore
Forum Sophomore

Joined: 08 May 2008
Posts: 169
Location: East Coast of Canada

LegalEagle wrote:
The progress of microprocessors from single to multi-core is creating a new demand for programmers who can deal with such matters. I'm curious - what's the programming language for microprocessors? Machine language?

http://www.economist.com/displayStory.cfm?source=hptextfeature&story_id=11361185


Assembler. AFAIK programming in machine language is simply not done/impossible. It would be similar to programming a high level language by manipulating the stack and registers directly; just not done.
Back to top
View user's profile Send private message
bit4bit
Posted: Wed May 14, 2008 3:20 pm    Post subject: Reply with quote

Forum Ph.D.
Forum Ph.D.

Joined: 14 Jul 2007
Posts: 611

I would assume assembly is used initially by the programmers, and then assembled into machine code. I don't think many people could program a quad core intel in machine code. It might be that even higher level languages are used, and then compiled into machine code.

CShark, just beat me too it. Smile
_________________
Chance favours the prepared mind.
Back to top
View user's profile Send private message
CShark
Posted: Thu May 15, 2008 8:48 am    Post subject: Reply with quote

Forum Sophomore
Forum Sophomore

Joined: 08 May 2008
Posts: 169
Location: East Coast of Canada

bit4bit wrote:
I would assume assembly is used initially by the programmers, and then assembled into machine code. I don't think many people could program a quad core intel in machine code. It might be that even higher level languages are used, and then compiled into machine code.

CShark, just beat me too it. Smile


Yep, Assembler is the syntax used to compile down to the lowest possible level. C and C++ compilers do the same: if you decompile a C program, you are left with LDA, LDX etc. statements, manipulating bytes or bits one at a time.
Back to top
View user's profile Send private message
Ryon
Posted: Thu May 15, 2008 9:49 am    Post subject: Re: What are processors programmed in? Reply with quote

Forum Freshman
Forum Freshman

Joined: 06 May 2008
Posts: 56
Location: Virginia

LegalEagle wrote:
The progress of microprocessors from single to multi-core is creating a new demand for programmers who can deal with such matters. I'm curious - what's the programming language for microprocessors? Machine language?

http://www.economist.com/displayStory.cfm?source=hptextfeature&story_id=11361185


Assembly for you. Circuits for making the microprocessors work all together.
_________________
My avatar looks like a vagina!
Back to top
View user's profile Send private message MSN Messenger
CShark
Posted: Fri May 16, 2008 10:56 am    Post subject: Re: What are processors programmed in? Reply with quote

Forum Sophomore
Forum Sophomore

Joined: 08 May 2008
Posts: 169
Location: East Coast of Canada

Ryon wrote:
LegalEagle wrote:
The progress of microprocessors from single to multi-core is creating a new demand for programmers who can deal with such matters. I'm curious - what's the programming language for microprocessors? Machine language?

http://www.economist.com/displayStory.cfm?source=hptextfeature&story_id=11361185


Assembly for you. Circuits for making the microprocessors work all together.


Actually, it has nothing to do with circuits. The only difference from a programmer's point of view is 'threading', that is, the ability to code more than one thread (or action). On multicore systems, each CPU can process its own thread of commands in real time. If you have a dual core, and the software supports dual-threaded funcionality, then theoretically the program will run twice as fast as on a single core.

I have not noticed a huge increase in most apps from my newer dual-core machine over my old single core system, except with two apps that I use: Lightwave and Photoshop. Most programs, being written for one cpu, are no faster with two.
Back to top
View user's profile Send private message
Display posts from previous:   
   Page 1 of 1

Science Forum Forum Index » Computer Science » What are processors programmed in?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
 
 


Google
 

© 2004-2008 Thescienceforum.com

Sponsored by EnluxLED

Partner Forums
Politics Forum  Radar Detector