Author Archives: sholsapp

Linking: why order matters

Having become somewhat accustom to tools like gcc(1) and ld(1) has been an interesting process — especially when the process ends in confusion. Namely, why order matters when linking static libraries to C/C++ applications, and why said static libraries should always follow the listing of objects. Like all systems, there is a reason why this [...]

Posted in Programming | Tagged , , | Comments closed

Linking shared object files that aren’t explicity used.

Today I learned something from a nice stranger I met on the internet in the #stackoverflow channel on irc.freenode.net named at cky944. For a personal project I’m modifying the Hoard memory allocator — a shared object library that application programs can link with to replace memory allocation code (e.g., malloc, free, etc.). Other users of [...]

Posted in Programming, Ubuntu Linux | Tagged , | Comments closed

Calculating a square root.

I was just recently asked to calculate the square root of 17 without a math library. I couldn’t do it when I was asked to, so the question has been bugging me of awhile. I was bored today, so I decided to figure it out. The following is a Python function that calculates the square [...]

Posted in Programming | Tagged , , , | Comments closed