> The idea is that the compiler add the code automatically every few > normal program instructions. > > This is just a theoretical idea, I don't think it may be useful because > of its low efficiency. Do you realise that 12/14 bit core PIC code (whether hand-assembly or compiler generated) generally uses global variables, and is hence not re-entrant? To make your idea work you would have to make unique copies of all code that is shared between threads. -- 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