[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [feature/native-comp] breakage on build
From: |
Phillip Lord |
Subject: |
Re: [feature/native-comp] breakage on build |
Date: |
Wed, 10 Feb 2021 21:23:19 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Andrea Corallo <akrl@sdf.org> writes:
> Phillip Lord <phillip.lord@russet.org.uk> writes:
>>> Correct, but if we can build eln files during the initial compilation we
>>> can also build trampolines AOT. This is just a matter of running:
>>>
>>> (mapatoms (λ (s)
>>> (when (subr-primitive-p (symbol-function s))
>>> (comp-trampoline-compile s))))
>>>
>>> Probably we should wire this in the build system so it's accessible as
>>> make target?
>>
>>
>> Why not wire it into the AOT compilation always? Obviously, if it
>> doubles the AOT compilation, that might not be such a great idea, but
>> otherwise?
>>
>> Phil
>
> That's a great question.
>
> Compiling a trampoline is about 0.2s each (mostly GCC gas ld startup
> time). Say we have ~1400 primitives this should translate into ~4.5 min
> of build time for something that in the average case is largely unused.
>
> The trouble is that the simple code snippet I posted is not parallel and
> there's no trivial way to make make aware of all these targets to have
> it handling the parallelism.
Yeah, that's not good at all.
Phil
- Re: [feature/native-comp] breakage on build, (continued)
- Re: [feature/native-comp] breakage on build, Eli Zaretskii, 2021/02/10
- Re: [feature/native-comp] breakage on build, Andrea Corallo, 2021/02/10
- Re: [feature/native-comp] breakage on build, Eli Zaretskii, 2021/02/11
- Re: [feature/native-comp] breakage on build, Andrea Corallo, 2021/02/11
- Re: [feature/native-comp] breakage on build, Eli Zaretskii, 2021/02/11
- Re: [feature/native-comp] breakage on build, Andrea Corallo, 2021/02/11
- Re: [feature/native-comp] breakage on build, Stefan Monnier, 2021/02/11
- Re: [feature/native-comp] breakage on build, Andrea Corallo, 2021/02/11
- Re: [feature/native-comp] breakage on build, Andrea Corallo, 2021/02/11
- Re: [feature/native-comp] breakage on build, Eli Zaretskii, 2021/02/12
- Re: [feature/native-comp] breakage on build,
Phillip Lord <=
- Re: [feature/native-comp] breakage on build, Andrea Corallo, 2021/02/11
- Re: [feature/native-comp] breakage on build, Eli Zaretskii, 2021/02/08
- Re: [feature/native-comp] breakage on build, Eli Zaretskii, 2021/02/08
- Re: [feature/native-comp] breakage on build, Óscar Fuentes, 2021/02/06
- Re: [feature/native-comp] breakage on build, Óscar Fuentes, 2021/02/06
- Re: [feature/native-comp] breakage on build, Andrea Corallo, 2021/02/05
- Re: [feature/native-comp] breakage on build, Phillip Lord, 2021/02/05
- Re: [feature/native-comp] breakage on build, Eli Zaretskii, 2021/02/05
Re: [feature/native-comp] breakage on build, Eli Zaretskii, 2021/02/01
Re: [feature/native-comp] breakage on build, Andy Moreton, 2021/02/01