newRPL: [UPDATED April 27-2017] Firmware for testing available for download
|
10-04-2016, 02:42 PM
Post: #403
|
|||
|
|||
RE: newRPL: [UPDATED September-17-16] Firmware for testing available for download
(10-04-2016 01:31 PM)Claudio L. Wrote: Lately, all compilers automatically generate a jump table when compiling switch statements with consecutive numbers, so from a speed point of view it's almost equivalent, except you don't need to explicitly code the array or the jump. Ok, thanks, I envisioned this fact, compiler's optimizations are so powerfull ! (10-04-2016 01:31 PM)Claudio L. Wrote: Also, using separate functions causes additional overhead in passing arguments, setting up variables, etc. that could be shared between all cases. As a workaround we can 'inline' the functions. I've successfully compiled my first 'custom' ROM (Ok custom only mean that I have added the MEM command), this worked well but the command is not displayed by the autocompletion feature, is there any place to declare this function I missed ? extract from 'lib-65-system.c' : Code: #define COMMAND_LIST \ MEM push the result on the stack : please, excuse my poor english |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 9 Guest(s)