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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/12/11 13:22
Read: times


 
#181560 - Optimal for what?
Responding to: ???'s previous message
Maarten Brock said:
I don't know what Keil does, but SDCC passes bool parameters at fixed addresses just like all other parameters for non-reentrant functions.

Keil can pass parameters in Registers, and only uses fixed locations when it runs out of registers.

Their register usage is documented for everything except bit parameters.

This is what I considered optimal.

Do you mean optimal for passing bit parameters, or optimal as an implementation of a boolean data type?


List of 17 messages in thread
TopicAuthorDate
bit type function parameter            01/01/70 00:00      
   Look at instruction set            01/01/70 00:00      
   What is your actual problem here?            01/01/70 00:00      
      main concern is code operation.            01/01/70 00:00      
         parameter converted to global variable            01/01/70 00:00      
            No reentrancy            01/01/70 00:00      
               Is it the 8051 instruction set?            01/01/70 00:00      
               Still looked at the bit capabilities of the processor?            01/01/70 00:00      
         You need to ask Keil            01/01/70 00:00      
         Use bool to simplify            01/01/70 00:00      
            BOOLEAN directive used            01/01/70 00:00      
               stdbool            01/01/70 00:00      
               Use stdbool            01/01/70 00:00      
                  Optimal implementation            01/01/70 00:00      
                     SDCC            01/01/70 00:00      
                        Optimal for what?            01/01/70 00:00      
                           both            01/01/70 00:00      

Back to Subject List