Date: Mon, 10 Oct 2005 16:22:00 +0200 From: rookie <asmrookie@gmail.com> To: freebsd-hackers@freebsd.org Subject: about gcc code assembly Message-ID: <3bbf2fe10510100722j2dcbc935n@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi,
compiling something like:
#include <stdio.h>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3bbf2fe10510100722j2dcbc935n>
