Peter Onion wrote: > The only thing about the order that matters that you can ensure the isr > tail code (with context restore and retfie) comes last. Yes, within that segment. However, my point was how do you guarantee that this segment even follows the ISR startup code at all? The startup code needs to be at an absolute address. I could see the linker not allowing absolute and relocatable segments with the same name. On the other hand, maybe it's fine with that, I've never tried. > I think it would be a pretty perverse linker that put code from the same > segment in any order other than the order it comes across it while > processing the command line arguments. Maybe, but it could also do it backwards or whatever. I would stay away from this unless it is specified in the linker manual. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist