Stewart Stremler wrote:
begin  quoting Gregory K. Ruiz-Ade as of Sun, Nov 18, 2007 at 01:48:31PM -0800:
[snip]
one would hope that most programmers were intelligent and used time_t, rather than making assumptions. such hope, unfortunately, might be futile.

The problem is that time_t is a hack.  And an ugly one at that.

That's not the real problem. The problem is that time_t gets mapped to a specific size by the *compiler* rather than the *linker*.

Consequently, 2 libraries can be compiled perfectly correctly and *still* fail to interoperate because one library thinks time_t is 32-bits and the other thinks time_t is 64 bits.

I believe that this is the kind of thing that LLVM was supposed to alleviate:
http://llvm.org/

-a


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to