Discussion Forum

Linking segments vs. modules

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Mathias Neuhaus
Posted
17-May-2002 08:37 GMT
Toolset
C51
New! 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
Read-Only
Author
Mathias Neuhaus
Posted
17-May-2002 08:41 GMT
Toolset
C51
New! RE: Linking segments vs. modules
Hi again,

I (of course :-) want this to be "automagic" and not have to specify any segment I want / don't want.


bis die Tage...
  Mathias
Read-Only
Author
Matthias Hertel
Posted
17-May-2002 09:40 GMT
Toolset
C51
New! RE: Linking segments vs. modules
Hello,
Maybe it would help if you give me a little example. I think I do not exactly understand what you want to do.
Read-Only
Author
Andrew Neil
Posted
17-May-2002 10:20 GMT
Toolset
C51
New! RE: Linking segments vs. modules
I think you'd have to make a Library?
Read-Only
Author
Jon Ward
Posted
17-May-2002 13:16 GMT
Toolset
C51
New! RE: Linking segments vs. modules
You can't. The linker does not work that way. In fact, I'm not sure that there are any linkers that work that way.

Jon
Read-Only
Author
Mathias Neuhaus
Posted
17-May-2002 13:34 GMT
Toolset
C51
New! RE: Linking segments vs. modules
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.

Next Thread | Thread List | Previous Thread Start a Thread | Settings