Skip to content

Monthly Archives: January 2013

analyzing linker max vsize


mozilla-inbound is currently approval-only due to issues with Windows PGO builds.  The short explanation is that we turn on aggressive code optimization for our Windows builds.  This aggressive code optimization causes the linker than comes with Visual Studio to run out of virtual memory.  The current situation is especially problematic because we can’t increase the […]

64-bit multiplication pitfalls


I’ve seen several instances of code recently that look something like this: void madd(int64_t *sum, int32_t x, int32_t y) { *sum += x * y; } Or this: void func(int64_t); … int32_t x, y = …; … func(x * y); Unfortunately, neither of these cases do what the programmer intended.  The intended result was to […]