Hi.
If I were doing this, I'd think about 2 facts: First, the base is a constant integer, second, that the exponents are all positive integers. That might lead us to consider an arithmetic package that need not be as general as things like bignum, perhaps one that we could write.
If this were not required to be in C, I think I would look at the scripting languages. I know that Icon for example has the capability to do extended range (
Integers in Icon can be arbitrarily large ... are represented by blocks of data that Icon manages ... large integers are supported in all arithmetic computations ... ).
On the other hand, I haven't had the need to write this, so this is really just a thought experiment
... cheers, drl