Timeline for Is my question about the machine code syntax of a CISC instruction set binary on-topic?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 14, 2020 at 19:07 | comment | added | Alexei Levenkov | And to add to levels of "compiler output" listed in @RobertHarvey comment (other high level language, other lower level language, byte code, CPU byte code) - there are also compilers that output even at level lower - [en.wikipedia.org/wiki/Microcode]... | |
Oct 14, 2020 at 18:42 | comment | added | Robert Harvey |
as the binary of compiled executables we commonly interact with is not raw CISC machine code ready to be fed to the processor, but rather assembly code ... -- Well, sort of. Compilers can emit all sorts of output, from source code in another language to byte code instructions that must be fed into a JIT interpreter for execution. And yes, they can also emit raw machine instructions. Just depends on what your needs are.
|
|
Oct 14, 2020 at 16:20 | comment | added | user1937198 | Assembly code usually refers to the textual representation of those instructions used by humans, whereas machine code is used to refer to the binary representation used by the actual processors. Then finally there is microcode, which is used in some (but not all) processors to translate from the complex general instructions to simpler internal instructions, and is usually specific to a single generation of processor by a specific manufacturer. | |
Oct 14, 2020 at 16:18 | comment | added | user1937198 | This is slightly off-topic for meta, but you probably need to look at the concept of specific instruction set architectures (en.wikipedia.org/wiki/Instruction_set_architecture) and are getting confused by microcode. In any compiled program, the program will be converted to binary instructions which target a specifc instruction set architecture. A number of different processors may be able to execute that architecture, (for example all intel core and AMD Ryzen processors execute x86-64). | |
Oct 14, 2020 at 16:04 | history | edited | J.Todd | CC BY-SA 4.0 |
added 45 characters in body
|
Oct 14, 2020 at 15:58 | history | answered | J.Todd | CC BY-SA 4.0 |