Re: A89: Re: File API


[Prev][Next][Index][Thread]

Re: A89: Re: File API




There is a much simpler solution...
Use the linker to combine all your object files into one object file.
GNU ld can do this.
Then, once you have your slightly bigger object file, use the tigcc linker.
If you tell ld to optimize, it should strip everything that isn't referenced,
but i really don't know, i've never tried. I know that when you use ld to
statically link against a library, only the required routines are included. The
trouble is that GNU ld is not doing the final linking step.
--robin


Zeljko Juric wrote:
> 
> > Rhere are ways to have the IDE intuitively decide which libraries to use,
> > such as checking the header files, and if math.h is included, it can be
> > assumed that math.a wll be needed.
> 
> But what if the user includes <all.h> ? To include for example all 100
> object files and to get 5K long program for "hello world" demo??? I am
> not too happy with such idea...
> 
> Zeljko Juric



References: