Hello!
I have uVision that compiles fine with the C51 v7.03 compiler and the related package, but not complete with the 8.06. I used two different Keil installations. All files are in the same folder.
In the 8.06 I get linker errors like "object does not fit in to pdata page" and "0080H". This looks like the compiler was thinking the PDATA was only 128 bytes, but it is set to 256 bytes in the startup.a51. Any clue what's different in the newer Keil package?
Also there is a warning in 8.06 (which does not show in 7.03) "converting non-pointer to pointer" on this
ptr_xdata = sPtr_obj->Adresse;
while the vars are set like this:
uchar uc_set_obj( uchar pdata *ptr_Set) { uchar i; uchar xdata *ptr_xdata; struct stOBJADR code *sPtr_obj; sPtr_obj=&Obj[*ptr_Set]; . . . ptr_xdata = sPtr_obj->Adresse; }
The struct stOBJADR has a member "uint Adresse;"
I can see no wrong use of the pointers. I just want to be sure that the warning does not affect the code to not work correctly.
"It just confuses"
Only because you still don't understand it, and still insist on using confusing terminology!
You don't seem to get it. I don't understand it, because it's confusing. I can understand anything that is logical for me. Electronics, current, atoms, physics, biology down to molecules, bits and bytes. I can explain you, down to the level of an electron, how a computer works, but this is not logical to me. My terminology helps me to understand it. It's enough to know what a pointer is and does, no need to understand it.
You plainly don't understand it, and your bad terminology may well be a contributing factor to that, if not just a symptom of it.
It's not complicated.
Keep it simple and just use the same terminology as the rest of the world.
"It's enough to know what a pointer is and does, no need to understand it."
If you know what it is and does, then you really should be capable of understanding it!