??? 08/02/06 21:55 Read: times |
#121598 - CPU Overhead Responding to: ???'s previous message |
Erik Malund said:
The 'overhead' I have most trouble with is TIME. Ok yes, that is always an overhead. I think though, the issue was speed vs overhead. Overhead being: (my definition) A) Code size/space (ROM) B) Variable usage/space (RAM all variations) you can not state that one factor is 'overhead' that, again, is application dependent. You can write a function/subroutine in, say, 53 bytes of code or in 5 bytes of code and 256 bytes of table in code memory, which of the two is 'overhead' is application dependent. Erik Yes, application dependent. The question is what are you optimizing for... speed or size (resource overhead) or both. No it's not a one size fits all type of thing, not all situations are going to be the same. I've been doing some searching here and have started compliling some of the ideas, programming practices, techniques, etc. to either reduce time required or to reduce ROM/RAM overhead. I still think it could make a good FAQ. Due to my limited (almost none) experience with C, I'll have to go with what I can find here. I know it is a very broad subject and will have to be generalized, but I think it is worthwhile. Jon |