• Sylvain Henry's avatar
    NCG: fast compilation of very large strings (#16190) · 1d9a1d9f
    Sylvain Henry authored
    This patch adds an optimization into the NCG: for large strings
    (threshold configurable via -fbinary-blob-threshold=NNN 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.
PprBase.hs 9.43 KB