[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling Elisp to a native code with a GCC plugin
From: |
Eli Zaretskii |
Subject: |
Re: Compiling Elisp to a native code with a GCC plugin |
Date: |
Fri, 17 Sep 2010 18:14:13 +0200 |
> From: Lars Magne Ingebrigtsen <address@hidden>
> Date: Fri, 17 Sep 2010 17:16:25 +0200
>
> Andreas Schwab <address@hidden> writes:
>
> >>>> Don't the Lisp integers use a bit for the type tag?
> >>>
> >>> most-positive-fixnum is a variable defined in `data.c'.
> >>> Its value is 2305843009213693951
> >>
> >> And by that you mean "yes" or "no"?
> >>
> >> (format "%x" most-positive-fixnum)
> >> => "1fffffffffffffff"
> >>
> >> That's at least a few bits less than MAX_INT, isn't it?
> >
> > $ printf '#include <limits.h>\nINT_MAX\n' | gcc -E -xc - | tail -n1
> > 2147483647
>
> You're being rather gnomic.
Psst, Lars: it's pointless to ask Andreas for human-readable
explanations. You won't get them. He enjoys to get you puzzled.
The issue here is that EMACS_INT can be a 64-bit type (on a 64-bit
host), but MAX_INT is always the maximum possible value of a 32-bit
int, even on a 64-bit machine.
- Re: Compiling Elisp to a native code with a GCC plugin, (continued)
- Re: Compiling Elisp to a native code with a GCC plugin, Andreas Schwab, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Wojciech Meyer, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Andreas Schwab, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Andreas Schwab, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Andreas Schwab, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Andreas Schwab, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin,
Eli Zaretskii <=
- Re: Compiling Elisp to a native code with a GCC plugin, James Cloos, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Stephen J. Turnbull, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Helmut Eller, 2010/09/15
- Re: Compiling Elisp to a native code with a GCC plugin, Thomas Lord, 2010/09/15
- Re: Compiling Elisp to a native code with a GCC plugin, Leo, 2010/09/15