??? 09/12/11 21:12 Read: times |
#183731 - Alternative Responding to: ???'s previous message |
An alternative would be to give each of your functions a number, and have a switch statement call the correct function based on the number associated with the input. I would think that the compiler could generate a decent jumptable-based switch if the numbers are continuous series - especially if the series starts from zero and your default: picks up unknown mappings. |
Topic | Author | Date |
SDCC: function pointers in an ISR | 01/01/70 00:00 | |
Alternative | 01/01/70 00:00 | |
re: Alternative | 01/01/70 00:00 | |
Register bank 1 | 01/01/70 00:00 | |
re: register bank 1 | 01/01/70 00:00 | |
Using... | 01/01/70 00:00 | |
Lack of orthogonality | 01/01/70 00:00 | |
incorrect warning | 01/01/70 00:00 | |
re: incorrect warning | 01/01/70 00:00 | |
not fixed yet | 01/01/70 00:00 | |
re: not fixed yet | 01/01/70 00:00 | |
Actel's answer. | 01/01/70 00:00 | |
warning | 01/01/70 00:00 | |
function pointers in SDCC | 01/01/70 00:00 | |
bug fixed! | 01/01/70 00:00 | |
Actel support | 01/01/70 00:00 | |
Still on the payroll![]() | 01/01/70 00:00 |