• Aceticon@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    14
    ·
    1 day ago

    Want to make tons of lines of code from pretty normal code?

    Just unroll your fixed size for loops (i.e. convert them into multiple copies of their contents, one after the other as many times as that loop would loop).

    You can actually automate it and in fact some compilers will do that when generating assembly for some microprocessor architectures (if the loops aren’t crazy big) because it increases performance in those (because the JMP instruction at the end of the loop is quite expensive).