#12665 - Mix - Fri Nov 21, 2003 4:55 pm
I made my first very simple "game", written in C, and I was compiling using DKA gcc. It basically just loads different screens (mode 4) depending on the keys that you press.
Then I wanted to try modifying it to use C++ and add sprites. Before I changed any code, I first tried compiling the same C code with g++. The resulting program loaded the screens noticeably faster.
Has anyone else noticed a speed difference between gcc and g++? I wonder if g++ is just more efficient, or maybe it's just more efficient with my particular set of code. I'm not sophisticated enough yet to be looking at the ASM output to see what the differences are.
Then I wanted to try modifying it to use C++ and add sprites. Before I changed any code, I first tried compiling the same C code with g++. The resulting program loaded the screens noticeably faster.
Has anyone else noticed a speed difference between gcc and g++? I wonder if g++ is just more efficient, or maybe it's just more efficient with my particular set of code. I'm not sophisticated enough yet to be looking at the ASM output to see what the differences are.