On 16/07/07, Olin Lathrop wrote: > But again, do you really want to do this? Considering the idea, I find it a particularly challenging target to hit with a compiler code generator - static interleaving of functions so that one receives as much computing time as it can and the other can perform one instruction per N. I'm not going to do it as I would say - just use a second PIC for that part and make a simpler connection between them. Maintaining a program with such constraints is pretty much impossible, especially if you didn't write it. Did you realise that any construction you make in your assembler to match these constraints can also be applied in a HLL compiler, with equal effectiveness? In other words, there's nothing you can do in assembler that you can't also do in a HLL, given the ability to adjust the compiler in a generic way. Walter, Is it possible to make something akin to plugins or loadable code generation hints that allow the compiler to match a given code sequence with constraints and to replace it with another? This would have to be before the timing checker, but I do think this would be very useful; if you know something the compiler doesn't, tell it (specific version of my mantra "fix problems where they are, not where the symptoms show"). -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist