[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] Add module functions to convert from and to big integers

From: Philipp Stephani
Subject: Re: [PATCH 2/2] Add module functions to convert from and to big integers.
Date: Wed, 24 Apr 2019 23:17:55 +0200

Am Mi., 24. Apr. 2019 um 22:58 Uhr schrieb Stefan Monnier
> >> I'm not sure I understand the details of the discussion, but if we
> >> sometimes include mini-gmp.h (or copies of parts of it) and sometimes
> >> gmp.h, isn't there a risk that a module built for "Emacs on
> >> amd64" will not work on "all" versions of "Emacs on amd64" (depending
> >> on whether it was built with GMP or with mini-gmp)?
> >
> > Yes, although the module fingerprint is supposed to catch problems
> > like that.  Such problems can also be caused by compiling with -O2
> > vs -O3, say.
> Really?  I thought our module system was designed so modules aren't so
> tightly coupled to Emacs's internals [ I remember discussions
> around exposing the size of Lisp_Object, for example.  ]

They are not coupled at all. They only depend on the basic machine ABI
(size and representation of arithmetic types and pointers, calling
conventions), but should otherwise be maximally compatible: If the
module author followed the recommendations from the manual, then any
version of Emacs can load any version of the module.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]