This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Accessing VECTAB address in C

I have an XC161 applicaton where I need to relocate the interrupt vectors. The VECTAB link instruction allows you to do this. However I would like to be able to read the VECTAB address from within a C file. Has anybody come across a way of doing this?

Of course I could just define it but then I would have 2 defines for the same thing, one in the C file and one in the linker settings (generally not a good idea).

Thanks.