Re: libtool
- From: viza <tom.viza@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 16 Sep 2008 01:42:22 GMT
On Tue, 16 Sep 2008 00:52:44 +0000, James Kuyper wrote:
Alcari The Mad wrote:
James Kuyper wrote:
Antoninus Twink wrote:
On 15 Sep 2008 at 23:26, Keith Thompson wrote:The same code can be used to parse shared/static libraries on all
Neil Morris <neil.morris2@xxxxxxxxxx> writes:Of course, this is complete nonsense.
Is it possible to code in c using libtool an executable that listThere's no portable C solution.
the symbols in shared/static libraries? Could someone show an
example?
All that is required is to parse a binary file, and this can be done
in 100% portable C.
implementations of C? How was a single uniform library file format
established? When? By whom? Who's responsible for executing anyone who
might otherwise dare to define a new, incompatible library file
format? How did they get rid of all of the legacy systems using
different file formats?
He didn't say it will parse any binary file,
I didn't criticize his suggestion on those grounds. I criticized his
suggestion the ground that it will not correctly parse all library file
formats. That's too large a set of file formats to be correctly parsed
by a single program of a size small enough to be portable to all
implementations of C, but it's a much smaller set than the set of all
binary files.
What complete nonsense! If I write {int foo[1000000]; then the code
can't be run on a system without enough memory for one million ints, but
the hardware limitation doesn't make the code not portable C, otherwise
you could just as easily say that {int bar[2]; is not portable C because
it won't run on a system without enough memory for that.
... just that the parser is portable.
He said "that is complete nonsense" in response to the assertion "there
is no portable C solution"
correctly.
It may be portable code, and it may be the correct solution to the
problem on many platforms, but it's only a portable solution if it
correctly solves the problem on all of the systems it can be ported to.
Look up "portable". It doesn't mean "which runs on every programable
device ever built".
It can't be a portable solution,
because the problem to be solved is different on different systems.
A conceivable portable program could handle every format ever used, which
would make determining which format to use is just a matter of local
configuration or a run-time option.
.
- Follow-Ups:
- Re: libtool
- From: Mark McIntyre
- Re: libtool
- From: James Kuyper
- Re: libtool
- References:
- libtool
- From: Neil Morris
- Re: libtool
- From: Keith Thompson
- Re: libtool
- From: Antoninus Twink
- Re: libtool
- From: James Kuyper
- Re: libtool
- From: Alcari The Mad
- Re: libtool
- From: James Kuyper
- libtool
- Prev by Date: Re: libtool
- Next by Date: Re: malloc for members of a structure and a segmentation fault
- Previous by thread: Re: libtool
- Next by thread: Re: libtool
- Index(es):
Relevant Pages
|
Loading