TP-Oreilly
In Runtime
- Messages
- 240
Hi,
I understand that when we write a program, the compiler will convert this into assembly code, which will then convert this into machine code.
I know that there are different types of assembly languages to suit different cpu architectures, such as intels x86 and x64 instruction sets.
My question is, where is the assembly program located? Is it actually stored on the cpu, as assemblers are cpu independent?
---------- Post added at 10:12 PM ---------- Previous post was at 10:08 PM ----------
Also, if we write a program which is converted into assembly which uses new cpu instructions, how would the program work on an older cpu?
Thanks.
I understand that when we write a program, the compiler will convert this into assembly code, which will then convert this into machine code.
I know that there are different types of assembly languages to suit different cpu architectures, such as intels x86 and x64 instruction sets.
My question is, where is the assembly program located? Is it actually stored on the cpu, as assemblers are cpu independent?
---------- Post added at 10:12 PM ---------- Previous post was at 10:08 PM ----------
Also, if we write a program which is converted into assembly which uses new cpu instructions, how would the program work on an older cpu?
Thanks.