| ??? 10/04/12 08:05 Read: times |
#188569 - Too much for a '51? Responding to: ???'s previous message |
I would avoid functions with variable arguements. Although it can be done in C, the overhead is huge. Have a look at the library source for printf for an example.
I would recommend forcing all functions to take a pointer as an arguemnt allowing you to pass a pointer to anything you like. Casts will be required, so for example the funcion prototypes can all specify void * as their arguement, as in your example. Re-coding a function that takes no parameters to take a dummy pointer is simple enough. As this all looks like the underpinnings of RTOS like features, I would look at things like message queues to store the complicated data structures. |
| Topic | Author | Date |
| Timers - Function Pointers | 01/01/70 00:00 | |
| Too much for a '51? | 01/01/70 00:00 | |
| I Agree | 01/01/70 00:00 | |
| Function Pointers... | 01/01/70 00:00 | |
| you are violating KISS | 01/01/70 00:00 | |
| Various Timer Functions | 01/01/70 00:00 | |
| Thanks Michael | 01/01/70 00:00 | |
| regardless, you are violating KISS | 01/01/70 00:00 | |
| even on ARM | 01/01/70 00:00 | |
| The timer simply increments | 01/01/70 00:00 | |
| bug | 01/01/70 00:00 | |
| more bugs | 01/01/70 00:00 | |
thanks | 01/01/70 00:00 |



