Re: where are __amd64 and __i386 defined?



On Mon, Jun 30, 2008 at 4:37 PM, michael <cs@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

On 30 Jun 2008, at 05:48, Star Liu wrote:

I read this line in a c source file:
#if defined (__sun) && (defined(__i386) || defined(__amd64))
I'm wondering where are __sun __amd and 64 __i386 defined?

I'd guess arch-specific C header files
not needed.

check this:
$ echo "" | strace -f -o 1.log cpp -E -x c -dM | grep -i i386
#define __i386 1
#define __i386__ 1
#define i386 1

and no header file is opened(check it in 1.log)

--
Best Regards,
LI Daobing


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages