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 10:00
Read: times


 
#84250 - True, but irrelevant
Responding to: ???'s previous message
Shahzad said:
i want to know how 8052 processor behave when it calls a function

As Craig has already said, the particular conventions used for functions calls, parameter passing, and return values are Compiler-Dependent - for full details, see your specific compiler Manual.

and you pass differnet data type when calling this function like...

The 'C' programming language specifies some of the rules, and others are implementation-defined - again, see your specific compiler Manual.

as in the previous post i was educated that it is quite possible that if some code is running fine under KEIL Debgugger, there is no guarantee it will also work on 8052 processor because both instances are run on different plateforms (PC and 8052)

If you are talking about the Keil Simulator and the Keil Debugger, this is possible, but irrelevant to this specific question. In these two cases, the code generated by the compiler is exactly identical. As explained to you before, any problems in real life that don't show up in simulation will be due to imperfect and/or incomplete simulation - they will not be due to different code generation!

However, If you are talking about Turbo-C and Keil C51, then the code most certainly is different, and it is definitely possible that you may fall-foul of some compiler dependencies.


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