View Single Post
Old Nov 16th, 2006, 10:40 AM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Perhaps you don't understand the situation. Microprocessors of differing type have different hardware circuitry. Some of the signals to drive these circuits are provided by software (machine code), along with some internal microcode. Machine code is produced by higher languages, such as assembler (generally very direct, often a direct mapping to machine code), as well as more abstract languages such as C, Fortran, you name it. These languages are tailored for a specific platform and ultimately emit machine code for the processor (even if via a virtual machine). Codes emitted for a given processor will not run on a non-compatible processor. This is the reason for cross-platform tools. It is also a reason for the existence of VMs, which do the "crossing" for you. The VMs, of course, have to be written for specific processors, also.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote