[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: |
Tom Tromey |
Subject: |
Re: Compiling Elisp to a native code with a GCC plugin |
Date: |
Tue, 14 Sep 2010 14:55:01 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
>>>>> "Lars" == Lars Magne Ingebrigtsen <address@hidden> writes:
Lars> Just imagine what that would be in native code, as opposed to byte code.
Lars> In either case, it'd just be a lot of calls to Fcar, Fcons, Fsetcar and
Lars> so on. Would the byte-interpreter call those functions a lot slower
Lars> than native code would? I kinda doubt it.
Actually, in this case it might be faster, since there are special
opcodes like Bcar, Bcons, Bsetcar, etc. Whether it is "faster enough"
is hard to guess; lexbind comes into play because with lexbind, the
various local bindings can just be C local variables, as opposed to much
more expensive elisp bindings.
Lars> Now, the same code in native C would of course be a lot faster, because
Lars> you'd use other data types, and you wouldn't do the code by straight
Lars> list manipulation at all. Possibly.
IIUC, yeah, if you're willing to have a new pure-C data structure with a
new read and write syntax, you can do even better.
Tom
- Compiling Elisp to a native code with a GCC plugin, Wojciech Meyer, 2010/09/14
- Re: Compiling Elisp to a native code with a GCC plugin, Tom Tromey, 2010/09/14
- Re: Compiling Elisp to a native code with a GCC plugin, Tom Tromey, 2010/09/14
- Re: Compiling Elisp to a native code with a GCC plugin, Wojciech Meyer, 2010/09/14
- Re: Compiling Elisp to a native code with a GCC plugin, Tom Tromey, 2010/09/14
- Re: Compiling Elisp to a native code with a GCC plugin, Wojciech Meyer, 2010/09/14
- Re: Compiling Elisp to a native code with a GCC plugin, Tom Tromey, 2010/09/14
- Re: Compiling Elisp to a native code with a GCC plugin, Wojciech Meyer, 2010/09/14
- Re: Compiling Elisp to a native code with a GCC plugin, Tom Tromey, 2010/09/14
- Re: Compiling Elisp to a native code with a GCC plugin, Wojciech Meyer, 2010/09/14
- Re: Compiling Elisp to a native code with a GCC plugin, Tom Tromey, 2010/09/14