Skip to content

NCG: fast compilation of very large strings (#16190)

Sylvain Henry requested to merge hsyl20/ghc:hsyl20-T16190 into master

This patch adds an optimization into the NCG: for large strings (threshold configurable via -fbinary-blob-threshold=N flag), instead of printing .asciz "..." in the generated ASM source, we print .incbin "tmpXXX.dat" and we dump the contents of the string into a temporary "tmpXXX.dat" file.

See the note for more details.

Edited by Sylvain Henry

Merge request reports