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

Back to Subject List

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


 
#183741 - function pointers in SDCC
Responding to: ???'s previous message
Hello,

You may want to try add '__reentrant' to the function definition?


byte Plus    (byte a, byte b) __reentrant  { return a+b;
                                           }

 



 From page 39,  Note that the reentrant keyword just means that the
 parameters & local variables will be allocated to the stack, it does not mean that
 the function is register bank independent. 

 


I'm not sure it will help, but it certainly seems like the right ball park to play in....

Rich.


List of 17 messages in thread
TopicAuthorDate
SDCC: function pointers in an ISR            01/01/70 00:00      
   Alternative            01/01/70 00:00      
      re: Alternative            01/01/70 00:00      
         Register bank 1            01/01/70 00:00      
            re: register bank 1            01/01/70 00:00      
               Using...            01/01/70 00:00      
               Lack of orthogonality            01/01/70 00:00      
                  incorrect warning            01/01/70 00:00      
                     re: incorrect warning            01/01/70 00:00      
                        not fixed yet            01/01/70 00:00      
                           re: not fixed yet            01/01/70 00:00      
                              Actel's answer.            01/01/70 00:00      
   warning            01/01/70 00:00      
   function pointers in SDCC            01/01/70 00:00      
   bug fixed!            01/01/70 00:00      
      Actel support            01/01/70 00:00      
         Still on the payroll            01/01/70 00:00      

Back to Subject List