Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 17 Oct 2005
Offline Last Active Apr 29 2016 07:47 AM

Posts I've Made

In Topic: Data alignment on ARM processors

29 April 2016 - 05:00 AM

*((unsigned char*)(&result)) = *offset;

Watch out for compiler optimisations breaking code like this (called type punning). It breaks the language aliasing rules. See this link:


In Topic: Beyond the Infinite

30 March 2016 - 04:37 AM

Have you seen Proun?


Might be useful for ideas/inspiration, if you weren't aware of it.

Good luck with it.

In Topic: Old PC problem

25 February 2016 - 12:40 PM

I'd check out the capacitors like Matias suggests. My old motherboard broke with no beeps, but with odd behaviour, like instant reboots, blue screens and the like. Opening it up I saw all the caps next to the CPU were worse than in Matias's first picures - they looked like little volcanoes that had erupted!

In Topic: Clinical studies on overlooking stupid bugs

11 February 2016 - 02:18 AM

I think most compilers have a warning setting to catch things like
if (x);
Maybe turn up your warning level? Or use some static code checking tool, like PVS-Studio or Cppcheck.

The compiler find most of my mistakes like this. The worrying time is when it compiles successfully and you know you're missing something, but can't remember what :-)

In Topic: time to angle

14 December 2015 - 03:28 PM

Ah, I see. I thought that seemed too simple :-)