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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/03/05 18:01
Read: times


 
#84278 - Not The Problem
Responding to: ???'s previous message
For passing by value (witch is what you are doing)
It is valid to call a function with a smaller type. It will be promoted. Larger types will be truncated with a warning.
So your problem is something else.
Note that that keil treats function(int,long,long) very differently than function(int,int,int)
(int,int,int) goes in the registers
(int,long,long) passes in memory.
How is your stack? do you have any pointers that are write in to other memory?


List of 16 messages in thread
TopicAuthorDate
different data types            01/01/70 00:00      
   Compiler-dependent            01/01/70 00:00      
   True, but irrelevant            01/01/70 00:00      
      Go back to the original thread            01/01/70 00:00      
   OK, New Thread            01/01/70 00:00      
      sorry terminology            01/01/70 00:00      
         Still wrong terminology?            01/01/70 00:00      
         Wrong Target!            01/01/70 00:00      
            i am again wrong            01/01/70 00:00      
               Debugger!            01/01/70 00:00      
                  Huu,,,,            01/01/70 00:00      
   bad programming style !            01/01/70 00:00      
      Underlying problem!            01/01/70 00:00      
   Not The Problem            01/01/70 00:00      
      Re: Neil            01/01/70 00:00      
         RTFM!            01/01/70 00:00      

Back to Subject List