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

OVERLAY Directive use

Hi

i have problem in function pointer using code banking. i use LX51 linker.

now i come to know from the c51.pdf that use overlay directive to solve this function pointer problem in code banking.

i tried a lot but don't get success in configuration.

can any body tell me how to use this directive in keil.

please explain by example.

thanks
regards
Niraj

  • why the header "OVERLAY Directive use" there is no problem there. The problem is that you (out of ignorance of the architecture you are working with?) even consider function pointers.

    Keil has implemented function pointers to accomaodate ANSI C but the issues with the '51 architecture, (NOTE: NOT the Keil software) makes that implementation something that require extreme care from the user.

    Why not just get rid of the function pointers and live happily ever after.

    Erik