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

shared variable slots

The feature of shared variables in C is a wonderful saver of DATA space. Can the same be implemented in assembler ?

Erik

Parents
  • Do you really?
    Surely, it's the Linker which does the overlaying, and all it cares about is whether the segment has the 'Overlayable' attribute or not?

    The Linker doesn't know (or care) about the naming conventions of C51, A51, PL/M, Pascal, or whatever source language you choose to use; the naming conventions are only of interest to you as the programmer if you want to mix these languages?

    I've not actually tried this on the Keil tools, so I could be totally wrong.
    Again ;-)

Reply
  • Do you really?
    Surely, it's the Linker which does the overlaying, and all it cares about is whether the segment has the 'Overlayable' attribute or not?

    The Linker doesn't know (or care) about the naming conventions of C51, A51, PL/M, Pascal, or whatever source language you choose to use; the naming conventions are only of interest to you as the programmer if you want to mix these languages?

    I've not actually tried this on the Keil tools, so I could be totally wrong.
    Again ;-)

Children