> This brings up another question. When you define a local > variable in C, that > variable desolves once the function it has been defined in > finishes it's > work. No. It is not accessible outside that function (or rather: accesssing it is illegal). There is no concept of 'desolving' (whatever that may be). > A global variable is there to stay till the program > ends. Is this the > same case in a PIC? Of course, when you use a C compiler it must implement what C requires. > This sounds very memory efficient. Most HLL compilers (all?) will implement local variables in a memory-efficient way, even on PICs that don't have a data stack (which is the traditional way to implement re-use of local variables). Note that this type of re-use is difficult to do in assembly, which is IMHO one of the good reasons to use a HLL. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist