Timeline for Replacing large lookup table with switch statement
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 17, 2020 at 13:49 | comment | added | CrossRoads | Could always change to a 1284P based board, with 128K flash, will easily hold a large lookup table in PROGMEM. | |
Mar 16, 2020 at 9:00 | vote | accept | user2268171 | ||
Mar 16, 2020 at 8:57 | comment | added | user2268171 | Dammit, you're absolutely right! :'( | |
Mar 16, 2020 at 8:52 | comment | added | Majenko | If you're not actually doing anything with yval the compiler will optimise all that code out. | |
Mar 16, 2020 at 7:01 | comment | added | user2268171 | How come Arduino compiles the code fine? I tested with the long switch statement of 16384 cases and it says it uses only 1000 bytes. I'll edit my question to include this. | |
Mar 16, 2020 at 6:58 | comment | added | user2268171 | In short, an adapter that reverses some value conversion that takes place in a software. | |
Mar 15, 2020 at 23:09 | comment | added | Majenko | What is it you're doing that needs such a huge lookup table? | |
Mar 15, 2020 at 23:07 | comment | added | user2268171 | I might be able to compress the array in some way. There's a lot of duplicates in the array so the amount of unique values is a lot less than 16384. | |
Mar 15, 2020 at 22:51 | history | answered | Majenko | CC BY-SA 4.0 |