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

Re: Problems when linking against the profiled libc



On Mon, Dec 03, 2001, Adi Stav wrote about "Re: Problems when linking against the profiled libc":
> On Sun, Dec 02, 2001 at 04:15:16PM +0200, Nadav Har'El wrote:
> > (e.g., openssl - one of the most obfuscated libraries I've seen).
> 
> I thought the OpenSSL source (especially internal API's) was totally 
> beautiful... Obviously we have very different tastes :) Takes a 
> while to understand its abstractions, but they make perfect sense
> when you consider what they are meant for. Rather GNUish in their C 
> code-reuse fanaticism, I thought.

It may be beautiful if you spend a month researching it. When you just
want to have look at it and see why something isn't exactly what you expected,
it's a bit frustrating to see that it has a dozen static functions with the
same name, dozens of functions written in assembly (and not just assembly -
they have some sort of perl wizardry to convert their own file formats into
what the assembler expects). It's a little, well..., obfuscated.

I guess that's what happens, though, when you try to get efficient function
overloading (e.g., the function that computers a hash can use MD5 or SHA1,
can run a function written in assembler or contact a special cryptography
coprocessor, and so on).

-- 
Nadav Har'El                        |      Monday, Dec  3 2001, 18 Kislev 5762
nyh@math.technion.ac.il             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Always remember you're unique, just like
http://nadav.harel.org.il           |everyone else.

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il