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

How to assign a group of function to a specified range code address?

All,

I'd like to separate all my functions as two qroups, one should located within code address 0x0000--0x4000, while the other is 0x4000--0xFFFF.

In assembly, I can use 'ORG', but how do I assign it in C code ?
Thanks.

SCC

  • hi,
    read a bit more about Linker options. In fact, Compiler creates object files, Linker takes them and place into output executable file at appropriate addresses. You may control these addresses with Linker commands. This process is described in A51 manual.

    Regards,
    Oleg