I've got some seperate "code libraries" I wrote myself, which
I link to an object file. And later on link it into my final
program. i.e. I've got a file with file routines, one for string routines, etc.
When I link a program which does not use ALL, but SOME
routines in one or more of my object files, MASM (6.11) seems to include the whole object file!
result: a larger than needed .COM file.
I wrote a simple test file with only the following contents:
..and linked it with an arbitrary object file. Even though
the test file does not use ANY routines of the object, MASM
included the whole frickin' file. result: a .COM file of
about 1k (!).
Any idea how to change this linker behaviour?
I link to an object file. And later on link it into my final
program. i.e. I've got a file with file routines, one for string routines, etc.
When I link a program which does not use ALL, but SOME
routines in one or more of my object files, MASM (6.11) seems to include the whole object file!
result: a larger than needed .COM file.
I wrote a simple test file with only the following contents:
Code:
assume cs:cseg, ds:cseg, es:cseg, ss:cseg
cseg segment para public
org 100h
main proc near
mov ah,2
mov dl,1
int 21h
int 20h
main endp
cseg ends
end main
..and linked it with an arbitrary object file. Even though
the test file does not use ANY routines of the object, MASM
included the whole frickin' file. result: a .COM file of
about 1k (!).
Any idea how to change this linker behaviour?