http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C++ small optimization question



Hi,

    this is an small question I think I know the answer but wanna be
sure. In VC++6 with the optimizations well configured having the
following code:


bool bResp;
int a,b;

    bResp=(a==b);

    ...

no any other use of bResp. The compiler will NOT generate any code for
it, does it?.
I know it sounds as a silly question but I have my reasons, which I can
explain if someone is interested in.

TIA


=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html