??? 01/03/05 06:36 Read: times |
#84244 - different data types |
hello i want to know how 8052 processor behave when it calls a function which has a signature like long fun1(char a, long b) and you pass differnet data type when calling this function like long z1; int z2; int z3; z3 = fun1(z1, z2); according to my knowledge for example a will receive only the first byte of long z1. But when i execute this code on 8052 the system seems to be hang. when i make all data types to same like int. all start wokring fine. 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) Shzhasd |
Topic | Author | Date |
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 |