Pretty clever. I wish that I thought of that. You'll probably want to put all the includes at the bottom of the interrupt routine after a return, but before the '}' so that you don't start by executing the first included file. -Mike -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of steve@TLA.CO.NZ Sent: Tuesday, April 13, 2004 4:20 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: goto instruction ??? , IAR C compilerfor [PIC] 18F6720 > What I am wanting to do is avoid function calls inside of interrupt > routine to keep stack size small, but want to keep serial , flash , > etc. in sepparate .C files. --------------------------- file main.c //interrupt routine { #include "serial.c" #include "flash.c" #include "etc.c" } ------------------------------ file serial.c { my serial code } Steve. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.