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 Reply Children
  • hi,

    can anyone please tell me why we, almost daily, see posts about absolute location of code segments.

    Is one of reason that some people forget words "Label" and "public/extern"?

    Another issue is interrupts' vectors.
    Last one I see is that some parts of code may be placed into external program memory. But this is not about ORG, there is absolute SEGMENT statement and segments' sequence placement to locate then.

    Some more may be come in mind later...

    Regards,
    Oleg

  • can anyone please tell me why we, almost daily, see posts about absolute location of code segments.<p>

    Bootloaders with firmware upgrade functionality, for example.

  • 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