This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Advantage of switch-case
- From: Shameem Ahamed <shameem dot ahamed at hotmail dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Fri, 17 Apr 2009 09:37:58 +0530
- Subject: Advantage of switch-case
Hi All,
Is there any advantage of using switch-case over if-else. I mean any internal optimizations, gcc can do on a Linux i386 machine?.
Is it saving any machine instructions for us ?.
Regards,
Shameem
_________________________________________________________________
So many new options, so little time. Windows Live Messenger.
http://www.microsoft.com/india/windows/windowslive/messenger.aspx