Xiaofan Chen wrote: >> Accordign to an answer in that thread it is impossible to make C18 >> create time-efficient (non-looping) context save/restore. > > I am not an PIC C language expert but the people in the thread like > jtemples (also in PIClist) and dhenry are the real experts. > I think they are saying that your firmware architecture is wrong. > > Switching compiler won't help in this case. This may not be true. The new HiTech Pro compiler (not the standard, and not the lite which is standard) is supposed to read all project source files for code generation and create smarter code, including only necessary context saving code. (I haven't yet used it.) Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist