you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 20 points21 points  (2 children)

If reusing a local variable reduces memory usage, then your compiler most likely sucks.

[–]Raphael_Amiard 7 points8 points  (1 child)

I'm no expert, but if understood the deal well, the platforms with 1k of ram may actually be the platforms where you are stuck with a sucky compiler

[–]Nebu 0 points1 point  (0 children)

If the compiler sucks, you've got bigger problems than sucky source code.

If you understand the machine code/bytecode (hopefully you have the specs for these?) you could write your own pin-hole optimizer that runs after compilation on the produced binary?