Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Andy Neil
07/02/09 16:50
Read: 150 times
Basingstoke
Uk


 
#166679 - Why do you ask?
Responding to: Karim Fallahzadeh's previous message
Is it purely out of curiosity, or do you have some need to know?

A compiler will use whatever instructions it deems necessary to implement the supplied source code. If there is no reason or need to use a particular machine instruction, then it won't get used - just like a real assembly programmer will only use an instruction if he has a need for it.

With an open-source compiler like SDCC, you could examine its code generation and see if there are any instructions that could never occur - but what would be the point?


List of 9 messages in thread
TopicAuthorDate
c compilers      Karim Fallahzadeh      07/02/09 14:17      
   Didnt get it...      MUNISH KUMAR      07/02/09 14:41      
   Why do you ask?      Andy Neil      07/02/09 16:50      
      Depends a lot on processor and compiler      Per Westermark      07/02/09 21:26      
         Other examples:      Christoph Franck      07/03/09 03:16      
            Not necessarily true      Andy Neil      07/03/09 03:47      
               Hand-crafted libraries      Per Westermark      07/03/09 04:12      
                  I don't see this as compiler output      Andy Neil      07/03/09 04:18      
                     Seemed to be quite explicit question      Per Westermark      07/03/09 04:42      

Back to Subject List