??? 06/27/05 17:49 Modified: 06/27/05 18:02 Read: times |
#96037 - I never did use function pointers Responding to: ???'s previous message |
You just make a table of function pointers with the function names as the table entries
I never did use function pointers when coding for the '51. It is fairly obvious that the architecture is not exactly great for such. Thus I can only refer to what has been posted all over "do not use function pointers with the '51" and "using function pointers with the '51 eat your memory" etc. an example http://www.8052.com/forum/read.phtml?id=90658 states: "Function pointers on an 8051 bring a whole raft of problems of their own!" Erik |
Topic | Author | Date |
Coding a Jmp table in C | 01/01/70 00:00 | |
Jmp Tables in C | 01/01/70 00:00 | |
you do not | 01/01/70 00:00 | |
Call table? | 01/01/70 00:00 | |
Of course not! | 01/01/70 00:00 | |
use jmp@a+dptr | 01/01/70 00:00 | |
jmp table not in C | 01/01/70 00:00 | |
Wrong ends of sticks? | 01/01/70 00:00 | |
You do not control the Compiler Output | 01/01/70 00:00 | |
You can not have your cake and eat it to | 01/01/70 00:00 | |
Jump Table in C | 01/01/70 00:00 | |
Call Table? (again) | 01/01/70 00:00 | |
Call Table? (again) | 01/01/70 00:00 | |
I never did use function pointers | 01/01/70 00:00 | |
No pain, no gain. | 01/01/70 00:00 | |
the overlaying | 01/01/70 00:00 | |
There can be a gain. | 01/01/70 00:00 | |
My 2 cents worth | 01/01/70 00:00 | |
Incorrect | 01/01/70 00:00 | |
As Matter of Fact....![]() | 01/01/70 00:00 |