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

Linking segments vs. modules

Hi there,

How do I get the linker to just include a single segment of a module (source file) into the output?
I don't need all the segments and don't want to split the source into different files.


bis die Tage...
  Mathias

Parents
  • Hi,

    this would be a killer feature though.

    The linker can overlay data and even replace lcall by acall; the gain in codesize by not linking unnecessary segments would be much higher.
    This functionality could even be a byproduct of overlaying data! Just tag every segment used (called) and drop all unnecessary segments.


    bis die Tage...
      Mathias

    PS: Yes, codesize does matter that much to me.

Reply
  • Hi,

    this would be a killer feature though.

    The linker can overlay data and even replace lcall by acall; the gain in codesize by not linking unnecessary segments would be much higher.
    This functionality could even be a byproduct of overlaying data! Just tag every segment used (called) and drop all unnecessary segments.


    bis die Tage...
      Mathias

    PS: Yes, codesize does matter that much to me.

Children
No data