From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15447 invoked by alias); 2 Mar 2010 04:57:28 -0000 Received: (qmail 15382 invoked by uid 22791); 2 Mar 2010 04:57:27 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Mar 2010 04:57:24 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NmKAb-0006xN-Vf for gcc-help@gcc.gnu.org; Mon, 01 Mar 2010 20:57:21 -0800 Message-ID: <27752183.post@talk.nabble.com> Date: Tue, 02 Mar 2010 04:57:00 -0000 From: rohitgeek To: gcc-help@gcc.gnu.org Subject: Re: optimization options not working In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <27637400.post@talk.nabble.com> <4B7D2D9F.4030604@redhat.com> <27650186.post@talk.nabble.com> <27714100.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-03/txt/msg00016.txt.bz2 Thanks John and Ian. @John Until you posted this, i never thought like that. I get what you have mentioned in post and when tried with function rather than in main {} as mentioned by Ian too, i get what i expect. But why does optimizer does so? Where is the assembly or data gone when doing the earlier way, because if we put some data into registers and done some manipulations, then where are they gone from assembly. I think my question has answer in your post ( " optimizer ignores the data and computation") , but i am still not getting it correctly. -- View this message in context: http://old.nabble.com/optimization-options-not-working-tp27637400p27752183.html Sent from the gcc - Help mailing list archive at Nabble.com.