??? 05/11/08 12:38 Read: times |
#154674 - Pointers in 8051 Responding to: ???'s previous message |
Use of the pointers is probably your problem. In the embedded type C the pointers are incredibly inefficient as when they are not specifically typed then need to carry around an extra byte for the type info (At least that is how Kiel C51 pointers work).
Also declaring the pointers in normal C is not really needed because in C a character array name is already one and the same as a pointer. So just pass that around. I would encourage you to look at the generated assembly language to determine what is going on and what the problem is. If it was me I would remake the display() routine so that it specifically used a pointer to XDATA and not a generic type. Then always make sure that all your strings are managed from XDATA. Michael Karas |
Topic | Author | Date |
LCD message format with strcat | 01/01/70 00:00 | |
Pointers in 8051 | 01/01/70 00:00 | |
Managed pointers.... | 01/01/70 00:00 | |
Hmmm.... | 01/01/70 00:00 | |
Ha Ha Ha.... | 01/01/70 00:00 | |
Hmmm, indeed | 01/01/70 00:00 | |
MK is right about the italics.. | 01/01/70 00:00 | |
You (and MK) are right! | 01/01/70 00:00 | |
Another Problem You Have... | 01/01/70 00:00 | |
I actually did not want a sprintf .. | 01/01/70 00:00 | |
Converting integers to strings | 01/01/70 00:00 | |
Getting better but not there still | 01/01/70 00:00 | |
Yet another problem | 01/01/70 00:00 | |
But I am concenating into DispMsg. | 01/01/70 00:00 | |
No you're not ???![]() | 01/01/70 00:00 |