Comment Too high up (Score 1) 365
I think that C/C++ is much too high a level to look at and say "This if statement requires n logic gates" because that if statement will be implemented in assembly differently on different systems.
However, one can look at assembly code and say "Ahah, that is 2 logic gates, and there's three more and that's another 3.".
So I think you need to compile your code on a whole bunch of systems, compare the assembly, and use some kind of average of the results to get a rough estimate of how many logic gates.