|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Greetings!
I'm programming the code for the CMUCam and serial interface right now and have just begun the portion where I determine the kind of data I am getting from the serial port buffer. I can imagine that this is an intensive process on the controller... so: would it be more efficient to use a switch statement or an else... else if chain to determine what the next character in the buffer is? I've read that a switch statement (out of many possibilities) would be more efficient because of compiler's ability to optimize the order of comparisons. But does this apply in the case of C18 2.4? Thank you! |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Has Being In FIRST Made You More Brave - More Confident? | JaneYoung | General Forum | 25 | 08-05-2007 10:11 |
| Who else is... | Jetgrindradio00 | General Forum | 2 | 03-03-2007 11:28 |
| Get more women to SWITCH! | Mikell Taylor | General Forum | 8 | 05-04-2006 23:30 |
| Need Help Wiring Micro Switch/Limiting Switch | Windward | Electrical | 2 | 07-02-2006 18:26 |
| Most Efficient Big Ball Getter??? Team 384 | archiver | 2001 | 18 | 24-06-2002 02:39 |