4 ms·
I'm a C programmer and I deal with gamedev. I've known dozens of C/C++ programmers, none of which have dealt with optimizing compilers.
by palish 15y ago
I'm a C programmer and I deal with gamedev. I've known dozens of C/C++ programmers, none of which have dealt with optimizing compilers.
- Someone 15y agoI do not believe that claim. As an example: register allocation is a form of optimization. Do you have a compiler that honors all 'register' declarations, puts nothing else in registers, and bails out if it runs out of registers? Also, are you sure your compiler always executes all espressions in the order they appear in your source code? Are you laying out _all_ your memory structures by hand, or are you counting on your compiler to do the beet it can do for most of them? If you have, say, #define WIDTH 1024 #define HEIGHT 768, does your compiler compile a multiplication instruction for "long x = WIDTH * HEIGHT;"? I think the only way to program C without using any form of optimization is by having one big asm block and nothing else. What compiler and compiler flags are you using on what architecture?
- palish 15y agoI misunderstood him. I thought he was saying "most C programmers write optimizing compilers", not "use optimizing compilers". Nevertheless, no one I've met tries to debug in Release mode, only Debug mode.