https://bugs.kde.org/show_bug.cgi?id=392855

Tom Hughes <t...@compton.nu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Tom Hughes <t...@compton.nu> ---
All that's happened in the second case is that gcc has optimised out the whole
thing as the nonsense that it is - it just puts 5 straight in the argument
register and passes it to printf. That's what happens when you compile with
optimisation.

So in the first case what you are seeing is your malloc, and in the second your
malloc never happens but something else (likely the dynamic linker or C library
run time) does do a 1024 byte malloc.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to