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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/03/09 02:26
Read: times


 
#166680 - Depends a lot on processor and compiler
Responding to: ???'s previous message
The 8051 instruction set is tiny, so it is highly likely that a compiler has support for using any assembler instruction (if the program needs it).

For some CISC processor architectures, there can be so many instructions and addressing modes that a lot of compilers will settle for using a subset.

An example of a instruction often not used is a BCD adjust instruction, i.e. an instruction specifically intended to use when adding two BCD-encoded numbers together, to make sure that the sum will also be a BCD number. C code does not have a way of declaring that a variable should use BCD format, so the C compiler will have a hard time figuring out that the BCD adjust instruction could be used.

List of 9 messages in thread
TopicAuthorDate
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      

Back to Subject List