From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18377 invoked by alias); 25 Nov 2003 06:21:58 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 18332 invoked from network); 25 Nov 2003 06:21:43 -0000 Received: from unknown (HELO ganesh.ctd.hcltech.com) (202.54.64.2) by sources.redhat.com with SMTP; 25 Nov 2003 06:21:43 -0000 Received: by GANESH with Internet Mail Service (5.5.2653.19) id ; Tue, 25 Nov 2003 11:50:42 +0530 Message-ID: <9F54AA5915501745A385AF7CBDC7E87177D959@HARITHA.ctd.hcltech.com> From: "Bansidhar Arvind Deshpande - CTD, Chennai." To: gcc-help@gcc.gnu.org Subject: gcc march option Date: Tue, 25 Nov 2003 06:21:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2003-11/txt/msg00329.txt.bz2 Hi , I am working on Red hat linux 7.3. I have gcc 3.3 installed on my box. I compiled my file as gcc a.c -march=i686 -c -o a686.o objdump -f a.o shows following output a686.o: file format elf32-i386 architecture: i386, flags 0x00000011: HAS_RELOC, HAS_SYMS start address 0x00000000 This means, though I have compiled my source with march=i686 option the object file header it throughs is of i386. I confirmed the instructions output by for both i386 and i686 options. There I found the difference. This means the compiler output the i686 instructions properly with the option set. I am interested why it does not through the file header of object file of type i686. Please correct me if i am missing something.. Thanks in advance.. ..Bansidhar