|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
||||
|
||||
|
Re: reprogram during a competition
If you need a sufficiently small number of values, table lookup will
save space. It just depends on how many you need. In the general case, an algorithm will save space and table lookup will optimize for speed. The use of #define will not necessarily save space (except in your source files, where you don't care). It depends on how you are doing things. To save space with constants, you want every reference to the value of the constant to be to the same memory location. If you just use the define, you will be storing the constant value everywhere it is used. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CMUcam II and competition lighting environments | dlavery | Programming | 5 | 16-02-2005 02:07 |
| 2004 WPI EBOT Competition (using Robovation robots) | ahecht | Off-Season Events | 3 | 04-11-2004 21:25 |
| FANATIC - Offseason Animation Competition | opnickc | 3D Animation and Competition | 15 | 10-06-2004 20:54 |
| New Competition in MI, Mailing List | Allison K | Off-Season Events | 0 | 29-03-2004 19:53 |
| Robots prepped for competition | Brandon Martus | FIRST In the News... | 0 | 24-03-2004 17:06 |