??? 07/02/09 19:41 Read: times |
#166677 - Didnt get it... Responding to: ???'s previous message |
Are you trying to ask this ? :
when a C program is translated to machine code, do all the assembly commands get used in the final machine code? This is possible but not necessarily always, e.g. you can put nothing but while(1) in your main program & then most of the assy. instructions wont be there in the compiled output except for the ones which would be required for the infinite loop. for example while(1) would amount something like: C:0x0478 80FE SJMP C:0478 You can also always write the program that makes use of every instruction, but in assembly only. In C, it is more or less dependent on whether the compiler thinks a particular instruction should be included or not decoding a particular C statement. This is called compiler optimazation, if I am not mistaken. |
Topic | Author | Date |
c compilers | 01/01/70 00:00 | |
Didnt get it... | 01/01/70 00:00 | |
Why do you ask? | 01/01/70 00:00 | |
Depends a lot on processor and compiler | 01/01/70 00:00 | |
Other examples: | 01/01/70 00:00 | |
Not necessarily true | 01/01/70 00:00 | |
Hand-crafted libraries | 01/01/70 00:00 | |
I don't see this as compiler output | 01/01/70 00:00 | |
Seemed to be quite explicit question![]() | 01/01/70 00:00 |