www.digitalmars.com         C & C++   DMDScript  

c++.command-line - pagesize when using LIB

reply Lars Ivar Igesund <larsivar igesund.net> writes:
Hi

I used LIB to build a static library out of some
object files (compiled from D source), but the
basic command line didn't work as the page size
was too small. Using 32 worked fine.
What I would like to know is if there are some
rule that decides the necessary page size somewhat
automatically? Is it the number of objectfiles or
the combined filesize of them or something else?
I want to automate the use of LIB, but this sort
of stops that (unless 32 is big enough for everything).

Lars Ivar Igesund
Jan 25 2004
parent reply "Walter" <walter digitalmars.com> writes:
"Lars Ivar Igesund" <larsivar igesund.net> wrote in message
news:bv1fa7$qeq$1 digitaldaemon.com...
 Hi

 I used LIB to build a static library out of some
 object files (compiled from D source), but the
 basic command line didn't work as the page size
 was too small. Using 32 worked fine.
 What I would like to know is if there are some
 rule that decides the necessary page size somewhat
 automatically? Is it the number of objectfiles or
 the combined filesize of them or something else?
 I want to automate the use of LIB, but this sort
 of stops that (unless 32 is big enough for everything).
The pagesize is an unfortunate artifact of the ancient lib file format. Just set it to a large size and leave it at that.
Jan 26 2004
parent reply Lars Ivar Igesund <larsivar igesund.net> writes:
Walter wrote:
 "Lars Ivar Igesund" <larsivar igesund.net> wrote in message
 news:bv1fa7$qeq$1 digitaldaemon.com...
 
Hi

I used LIB to build a static library out of some
object files (compiled from D source), but the
basic command line didn't work as the page size
was too small. Using 32 worked fine.
What I would like to know is if there are some
rule that decides the necessary page size somewhat
automatically? Is it the number of objectfiles or
the combined filesize of them or something else?
I want to automate the use of LIB, but this sort
of stops that (unless 32 is big enough for everything).
The pagesize is an unfortunate artifact of the ancient lib file format. Just set it to a large size and leave it at that.
And is 32 a large size? Lars Ivar Igesund
Jan 26 2004
parent "Walter" <walter digitalmars.com> writes:
"Lars Ivar Igesund" <larsivar igesund.net> wrote in message
news:bv41pe$21n1$1 digitaldaemon.com...
 Walter wrote:
 "Lars Ivar Igesund" <larsivar igesund.net> wrote in message
 news:bv1fa7$qeq$1 digitaldaemon.com...

Hi

I used LIB to build a static library out of some
object files (compiled from D source), but the
basic command line didn't work as the page size
was too small. Using 32 worked fine.
What I would like to know is if there are some
rule that decides the necessary page size somewhat
automatically? Is it the number of objectfiles or
the combined filesize of them or something else?
I want to automate the use of LIB, but this sort
of stops that (unless 32 is big enough for everything).
The pagesize is an unfortunate artifact of the ancient lib file format.
Just
 set it to a large size and leave it at that.
And is 32 a large size?
No. I think 512 is the largest.
Jan 26 2004