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

code origination in C

Can anyone please tell me if there is any way to configure Keil so that i can relocate blocks of my program to any given location. In assebly we simply write ORG followed by the absolute memory location. Is this also possible in C. any help will be highly apprecated.

Parents
  • A corrective addition my post should have been:
    can anyone please tell me why we, almost daily, see posts about absolute location of code segments using C.

    Is one of reason that some people forget words "Label" and "public/extern"?
    That one I'll believe

    Another issue is interrupts' vectors.
    invalidated by the above addition "using C".

    Bootloaders with firmware upgrade functionality, for example.
    That seems not to be the reason the 'daily' question is asked. Besides, that would not be functions/segments but complete programs located.

    Erik

Reply
  • A corrective addition my post should have been:
    can anyone please tell me why we, almost daily, see posts about absolute location of code segments using C.

    Is one of reason that some people forget words "Label" and "public/extern"?
    That one I'll believe

    Another issue is interrupts' vectors.
    invalidated by the above addition "using C".

    Bootloaders with firmware upgrade functionality, for example.
    That seems not to be the reason the 'daily' question is asked. Besides, that would not be functions/segments but complete programs located.

    Erik

Children
No data