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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/21/04 07:52
Read: times


 
#68949 - RE: Keil C51 uses DJNZ
Responding to: ???'s previous message
Yes, but that assumes that the SMALL Memory Model is used.

If Iztok is using a different Memory Model, or has specifically declared his variable as something other than 'data', the generated code may be different.

And, of course, if the variable is something other than a char, DJNZ can't be used...

Anyhow, I think we're agreed on the original point: you cannot force any 'C' compiler to use any specifc machine instruction(s); sure, you can help it by optimising your 'C' source - but you cannot force it.

List of 18 messages in thread
TopicAuthorDate
Keil Halt            01/01/70 00:00      
   Use Assembler.            01/01/70 00:00      
   RE: Keil Halt            01/01/70 00:00      
      RE: Keil C51 uses DJNZ            01/01/70 00:00      
         RE: Keil C51 uses DJNZ            01/01/70 00:00      
            RE: Keil C51 uses DJNZ            01/01/70 00:00      
   Optimise your C            01/01/70 00:00      
      RE: DJNZ            01/01/70 00:00      
   RTFM?            01/01/70 00:00      
      RE: RTFM?            01/01/70 00:00      
         RE: RTFM?            01/01/70 00:00      
            RE: RTFM?            01/01/70 00:00      
               RE: RTFM?            01/01/70 00:00      
                  RE: RTFM?            01/01/70 00:00      
                     Keil Halt - Primer            01/01/70 00:00      
                        RE: Keil Halt - Primer            01/01/70 00:00      
                           This way lies disaster!!            01/01/70 00:00      
   RE: Keil Halt            01/01/70 00:00      

Back to Subject List