I am using the Keil Compiler for programming the MSC1210 from Texas instruments with a 8051 core. My application needs that i use the Serial port interrupts & Timer 0 interrupt in my project.Both the ISRs are written in different files. When i try to compile the project with both files included, it gives me an "Adress Space Overflow" message. When any 1 of the files is not included the project compiles. I dont understand why this is happening. Kindly help.
the key to this is "using" if a routine is "using" x, all functiuons called must be "using the same. Due to the archirecture of the '51 it is usually a bad idea to have 2 levels (main and int) call the same routine, if you absolutely must, the you need to specify the roiutine as "reentrant" and have both callers be "using" the same level. I would, without even considering the other option, use 2 copies of the routine called by both. Erik