[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Known case that emacs lisp code doesn't work correctly if native com
From: |
T.V Raman |
Subject: |
Re: Known case that emacs lisp code doesn't work correctly if native compilde |
Date: |
Mon, 30 Aug 2021 13:17:47 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
I remember there was a thread on this earlier (one I perhaps started)
where there was an assertion that perhaps .eln files should be derived
from the .elc files, rather than from the .el files to avoid compilation
order issues.
>> I would like to investigate it but probably it will take for a while.
>> So before starting it I would like to ask one question.
>
> I think you should open a bug report for that.
>
>> Is there any known case that some type of emacs lisp code doesn't work
>> correctly if it is native compiled?
>
> IIRC native compilation recompiles the .el files instead of starting
> from the .elc files, so if compilation of the .el to .elc is only
> correct depending on specific packages being loaded in a specific order
> it may happen that the native compilation will generate invalid code
> (this is typically the case for large packages which force you to
> compile the package via a `make` rule which takes care of preloading
> the necessary files in the right order).
>
> So far this has been a hypothetical problem, tho, so please report it so
> we can better investigate.
>
>
> Stefan
>
>
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
?7?4 Id: kg:/m/0285kf1 ?0?8