From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4160 invoked by alias); 22 Feb 2008 20:00:44 -0000 Received: (qmail 4148 invoked by uid 22791); 22 Feb 2008 20:00:41 -0000 X-Spam-Check-By: sourceware.org Received: from xena.cds1.net (HELO mail.cds1.net) (216.174.197.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 22 Feb 2008 20:00:23 +0000 Received: from localhost (neptune-canopy.cds1.net [172.16.10.246]) by mail.cds1.net (Postfix) with ESMTP id 11B9DE89ECA2 for ; Fri, 22 Feb 2008 12:00:22 -0800 (PST) Received: from mail.cds1.net ([172.16.10.33]) by localhost (neptune.cds1.net [172.16.10.246]) (amavisd-new, port 10024) with ESMTP id FYVRNCSveDyz for ; Fri, 22 Feb 2008 12:00:12 -0800 (PST) Received: from [192.168.1.101] (dhcp-172-16-14-253.cds1.net [172.16.14.253]) by mail.cds1.net (Postfix) with ESMTP id A7FB8E89EC94 for ; Fri, 22 Feb 2008 12:00:11 -0800 (PST) Subject: C main 32/64 bit prologues differ From: Bob Plantz To: gcc-help Content-Type: text/plain Date: Fri, 22 Feb 2008 20:39:00 -0000 Message-Id: <1203710407.6360.20.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit 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: 2008-02/txt/msg00273.txt.bz2 The prologues for the main function in C differ (at the assembly language level) depending on whether it is compiled for 32-bit or 64-bit in the x86 architecture. Also, adding a dwarf2 unwind table is the default in 64-bit mode, but not in 32-bit. Can anyone point me to discussions about why it's done this way?