|
#1
|
|||||
|
|||||
|
CPU Load in FRC RC
It has been years - no, decades - since my last programming class. (We used punchcards, if that's a clue...).
My question has to do with the relative load on the CPU for the various programmatical operations that can be performed. I was always under the impression that an IF statement took a lot more CPU time than a series of 3 or 4 simple additions - but a thread near here made me re-think that belief. So, can anyone explain to me the load on the CPU of the various operations, particularly Math (integer and quasi-floating [bit shifts?], if there's any difference), Logical comparisons (<=), Conditionals, and I/O statements (and what else did I miss?). Also, my assumption is that if I do a certain calculation, it takes as long to do it in a 'subroutine' (or whetever we call them today - a called function?) as it would in the main programming loop. (Ignore proper programming practice, I'm only worried about CPU load) Not looking for exact numbers, a relative comparison would be fine. Even better would be a reference where I could just read on it myself... Thanks, Don |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CPU loop speed | Windward | Programming | 6 | 07-02-2007 15:22 |
| **FIRST EMAIL**/Championship Updates - Load In and Load Out and Finale Ticket Inform | AmyPrib | FIRST E-Mail Blast Archive | 3 | 21-04-2006 11:08 |
| corrupt CPU? | Windward | Programming | 3 | 14-01-2006 15:33 |
| best cpu | _GP_ | Technical Discussion | 28 | 24-04-2004 21:15 |
| cpu | ivanslost | Programming | 1 | 15-02-2003 23:23 |