Timothy J. Weber wrote: > Olin Lathrop wrote: >> Tamas Rudnai wrote: >>> I was so surprised that when there is a sentence here about "typical >>> length of function" noone replies that "hey, you have a very limited >>> stack + the overhead of the function call is what everyone wants to >>> avoid + in an ISR probably not so good idea to call functions" etc. >> >> I had considered doing that, but it seemed to me nobody was interested in >> listening any more, only about explaining how their way was so wonderful. > > The C compiler I use (BoostC) supports "inline" functions, so there is > no additional overhead if a function is called only once. It's not the only one. Some are even smart enough to recognize that a function is only used once (or maybe it's short and only used a few times) and inline it during their normal optimization automatically, even if it's not declared inline. But then, you can't really expect that people who like to do that manually, and in assembly, consider such details :) Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist