From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 10 14:22:01 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E73E416A41F for ; Mon, 10 Oct 2005 14:22:01 +0000 (GMT) (envelope-from asmrookie@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F28243D48 for ; Mon, 10 Oct 2005 14:22:01 +0000 (GMT) (envelope-from asmrookie@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so140680nzk for ; Mon, 10 Oct 2005 07:22:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=mrG/sercpvCrogdRyr6YQzHC1sROqWweAtjV1iME4HCCct5EWr/Ombm07jNDR63dPQgipdj2MGNUil3xCI00WXe7aWmEsIFOWCiHmUk4DrDcTED9xXxlFSN4Gx80whkZyBu0hzJvvCqnRsPAyo1LLU8SklLwVhBnWVzZBTk7EJA= Received: by 10.36.247.57 with SMTP id u57mr2934227nzh; Mon, 10 Oct 2005 07:22:00 -0700 (PDT) Received: by 10.36.46.7 with HTTP; Mon, 10 Oct 2005 07:22:00 -0700 (PDT) Message-ID: <3bbf2fe10510100722j2dcbc935n@mail.gmail.com> Date: Mon, 10 Oct 2005 16:22:00 +0200 From: rookie To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: about gcc code assembly X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rookie@gufi.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 14:22:02 -0000 Hi, compiling something like: #include static int a; void f() { printf("%d\n", a); } with: > gcc -S -o trial.S trial.c We got: [snip] ... .local a .comm a, 4, 4 .ident "GCC: (GNU) 3.4.2 [FreeBSD] 20040728" But using .lcomm would not be better? (.lcomm a, 4) cheers, Attilio -- Peace can only be achieved by understanding - A. Einstein