Nat! bio photo


Senior Mull.

Twitter RSS


Slow Progress and a Wedge Example

Found a bug in valloc, which I just coded yesterday. Still remains brown. Weird. OK next up, I might as wll try to reproduce the gawk benchmark using the wedge technique, and I hope that not too much of the 25% gain I had is lost by the shared library call (my original gawk test used static calls). For the benefit of those, who want to try "Wedging" for themselves, Here is a little test case, a simple example that overrides random.Hmm, I wanted to post this uuencoded here, but HTML is surely not the way to do it. Grab the Archive and use it with the shell. What is interesting here is, that the linker does not generate a duplicate symbol warning, although I think it should because random is also declared in libSystem.B.dylib, which happens to be linked to the WedgeLib anyway:

bash-2.05a$ otool -L libRandomWedge.dylib 
        libRandomWedge.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 63.0.0)