[Nasm-bugs] [Bug 3392892] [Patch] Major memory leak when using many %rep loops with nontrivial content

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Thu Jul 20 14:21:02 PDT 2023


C. Masloch <pushbx at ulukai.org> changed:

           What    |Removed                     |Added
                 CC|                            |pushbx at ulukai.org

--- Comment #1 from C. Masloch <pushbx at ulukai.org> ---
The debugger, being quite a large project assembled all at once, did already
feature many uses of %rep blocks. I assume this is the reason that this patch
greatly reduces the memory use of the assembler even when not using the new
feature that I mentioned (_CHECKSECTION=0). Here's a comparison:

/usr/bin/time --format="%M\n" orignasm -I ../../l
macros/ -I ../../scanptab/ debug.asm

/usr/bin/time --format="%M\n" nasm -I ../../l
macros/ -I ../../scanptab/ debug.asm

570 MiB vs 41 MiB.

As mentioned in another bug report:

> The /usr/bin/time executable is GNU time. Its %M format code lists the maximum amount of KiB reserved to the process.

You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

More information about the Nasm-bugs mailing list