OSLib and ELF

Stewart Brodie stewart at metahusky.net
Fri Apr 13 00:08:18 BST 2007


John Tytgat <John.Tytgat at aaug.net> wrote:

> In message <gemini.jgeev7002fu6z03qs.stewart at metahusky.net>
>           Stewart Brodie <stewart at metahusky.net> wrote:
> 
> > > The -j make option.  Basically doing more than one build step at the
> > > same time.  Keeping multicore/cpu happy.  It roughly cuts build times
> > > in 2 or 3.
> > 
> > Does that *really* matter all that much?  Last time I cross-compiled
> > OSLib, it only took 45 seconds or so for a full build from clean but,
> > admittedly that was probably 7-8 years ago, but I can't believe that
> > it's got slower in the meantime, has it?
> 
> Actually on my machine (AMD 64 X2 4400+ based):
> 
> real    4m5.554s
> user    3m1.671s
> sys     0m53.119s

How bizarre.  I remember being shocked that it had built so quickly - I
actually assumed that it hadn't built correctly at first, but it had.  I
suppose it could have been because I was able to use objasm to assemble it,
and I'm assume that you're not using it.

Idle curiosity really: how long do native builds take nowadays?  It used to
be 45-50 minutes on a SrongARM Risc PC, IIRC?


> > I don't understand why you can't use the same Makefiles for
> > cross-compiling and native compiling - is it not just a case of a
> > different CC and LIB macros?
> 
> Exactly, that's where I want to go.
> 
> > I thought I'd submitted all those changes to the project when I did
> > them, which would be at least 7-8 years ago now.  Perhaps it was just
> > the patches that meant you could compile up defmod itself for Linux or
> > Solaris. Sorry, if that's so - I no longer have any RISC OS source trees
> > :-/
> 
> I can't answer that.  Your defmod changes are certainly there,

It's a shame.  Looks like that work was lost then :-(


-- 
Stewart Brodie



More information about the oslib-user mailing list