| Author |
Message
|
| LegalEagle |
Posted: Wed May 14, 2008 9:14 am Post subject: What are processors programmed in? |
|
|
Forum Freshman

Joined: 06 Apr 2008 Posts: 30
|
|
| Back to top |
|
 |
| SuperNatendo |
Posted: Wed May 14, 2008 9:45 am Post subject: |
|
|
 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 |
|
 |
| CShark |
Posted: Wed May 14, 2008 3:19 pm Post subject: Re: What are processors programmed in? |
|
|
 Forum Sophomore

Joined: 08 May 2008 Posts: 169 Location: East Coast of Canada
|
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 |
|
 |
| bit4bit |
Posted: Wed May 14, 2008 3:20 pm Post subject: |
|
|
 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.  _________________ Chance favours the prepared mind. |
|
| Back to top |
|
 |
| CShark |
Posted: Thu May 15, 2008 8:48 am Post subject: |
|
|
 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.  |
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 |
|
 |
| Ryon |
Posted: Thu May 15, 2008 9:49 am Post subject: Re: What are processors programmed in? |
|
|
 Forum Freshman

Joined: 06 May 2008 Posts: 56 Location: Virginia
|
Assembly for you. Circuits for making the microprocessors work all together. _________________ My avatar looks like a vagina! |
|
| Back to top |
|
 |
| CShark |
Posted: Fri May 16, 2008 10:56 am Post subject: Re: What are processors programmed in? |
|
|
 Forum Sophomore

Joined: 08 May 2008 Posts: 169 Location: East Coast of Canada
|
| Ryon wrote: |
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 |
|
 |
|
|