Goto Statements and C++ Compiler Optimizations
From: bytesgrip (spamtrap_at_crayne.org)
Date: 03/09/05
- Next message: David Alm: "Re: OMF fixup question relates to assembly"
- Previous message: spamtrap_at_crayne.org: "Re: OMF fixup question relates to assembly"
- Next in thread: hutch--: "Re: Goto Statements and C++ Compiler Optimizations"
- Reply: hutch--: "Re: Goto Statements and C++ Compiler Optimizations"
- Reply: Matt: "Re: Goto Statements and C++ Compiler Optimizations"
- Reply: Tim Roberts : "Re: Goto Statements and C++ Compiler Optimizations"
- Reply: invincible: "Re: Goto Statements and C++ Compiler Optimizations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 9 Mar 2005 21:18:01 +0000 (UTC)
Hi.
I'm programming in C++ using Visual Studio.
For efficiency purposes, I tried using the goto statement (I have a
while-loop with 3 breaking conditions - cond1&&cond2&&cond3, and after
finishing the loop, I want to know the reason for getting out).
This currently shows a nice overall performance improvement of 14%.
What I'd like to know, is whether using goto might confuse the compiler
and make it avoid doing certain optimizations. Do you know if that's
possible, or maybe just the opposite?
Thanks,
bytesgrip.
- Next message: David Alm: "Re: OMF fixup question relates to assembly"
- Previous message: spamtrap_at_crayne.org: "Re: OMF fixup question relates to assembly"
- Next in thread: hutch--: "Re: Goto Statements and C++ Compiler Optimizations"
- Reply: hutch--: "Re: Goto Statements and C++ Compiler Optimizations"
- Reply: Matt: "Re: Goto Statements and C++ Compiler Optimizations"
- Reply: Tim Roberts : "Re: Goto Statements and C++ Compiler Optimizations"
- Reply: invincible: "Re: Goto Statements and C++ Compiler Optimizations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|