Vitaliy wrote: > Say you allocate a static buffer to hold data that you receive over > UART. That sounds like big system thinking. Most of the time you don't need to store a buffer full of input data to process it. Eventually deep down somewhere it will likely be processed a byte at a time. You might as well design your system to process the incoming data as a byte stream in the first place. Occasionally you may need to process a chunk of bytes together, like when converting them from ASCII to integer, but that is still smaller than a whole line or record or something. Such small temporary buffers can often be allocated by adding them to the stack since their use is local to the current routine. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist