We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Does anyone knows a methode, to declare a function in a specific CODE address in C51? Something lika a org xxxx in assembler !
Whenever you want to locate a function at an absolute address, one question you should ask yourself is whether or not you need a vector table instead. A vector table will add one level of indirection to the solution, but it becomes easier to manage the two halves of your program when you keep updating the routines to be called. Only the vector table has to be located at a well-known address, and the table entries are small and of constant size (unlike entire function bodies). Note that in order to get a C function into a segment all by itself so you can tell the linker where to place it, you'll need to put it in a .c file all by itself.