[Top][All Lists]

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

Re: [Gnu-arch-users] libpatch hack WAS: --forward mostly harmless

From: chth
Subject: Re: [Gnu-arch-users] libpatch hack WAS: --forward mostly harmless
Date: Wed, 15 Sep 2004 22:47:14 +0200

> address@hidden writes:
> > In my opinion is that almost any application should be a library and
> > the commandline frontend should be just a generic driver like
> > (schematic code):
> >
> > [...]
> >
> > Well, long way to make such happen.
> Is it so hard to write a wrapper for exec(2) to do roughly the same
> thing?  What's gained by turning binaries into libraries this way?
> (Note I'm not arguing against libraries with a good abstraction
> barrier, etc. just don't see the point in turning every binary into
> the same front end to a different library.)

the libfoomain() is only a canonical interface, but having foo as
library then applications use its functions/interface on a much finer
granularity. Of course thats not needed everywhere but doesnt hurt
otherwise. Even if one only links libfoo and use libfoomain then he
benefits at least in a way that he dont need to care for fork/exec and
gets some speed (well we've seen thats not always that big, but people
told me today that fork in cygwin is dead slow).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]