Original Post
Hey, I''ve a question about VC++ compiler optimizations. First at all, my assembler knowledge is almost null so that''s why I can''t check this out by myself using the IDE''s dissasembly, I promise I will learn! But in the meantime, can anybody answer my small question?
First, shiftings. If I have a
#define NUMBER 64
or
const int NUMBER = 64;
and I do
int anewnum = 5 * NUMBER;
Does the compiler optimize the equation as if I would write 5 << 6?
And what about int anewnum = NUMBER * 5; ?
That''s all!
BTW, is there a place where I can see the compiler behavior when optimizing for speed? It would be interesting to watch differences between VC++, BC++ and GCC.
Thanks all.