]> git.eshelyaron.com Git - emacs.git/commit
* Cut down compile-time emitting static data as string literals
authorNicolás Bértolo <nicolasbertolo@gmail.com>
Wed, 20 May 2020 03:34:32 +0000 (00:34 -0300)
committerAndrea Corallo <akrl@sdf.org>
Sun, 31 May 2020 16:50:07 +0000 (17:50 +0100)
commit3efb2808d415f723ade4a0f9f61738e1a707156c
tree0aacaaa573dea99aee35508721ef625bba1d695c
parent5cf148cfef23b827629950048dab678f3b9af2d3
* Cut down compile-time emitting static data as string literals

This change drastically reduce compile time.  Apparently GCC optimizer
does not scale up well at all for long sequences of assignments into a
single array.

Nicolás Bértolo <nicolasbertolo@gmail.com>
Andrea Corallo  <akrl@sdf.org>

* src/comp.c (gcc_jit_context_new_string_literal)
(gcc_jit_block_add_assignment_op): New imports.
(comp_t): New 'size_t_type' 'memcpy' fields.
(emit_static_object): Define static objects using string literals
and memcpy.
(define_memcpy): New function.
(Fcomp__init_ctxt): Define 'size_t_type' and 'memcpy'.
src/comp.c