[Issue 8828] Long compilation time of a destroy() on a large fixed-sized matrix

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 16 13:30:51 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8828



--- Comment #2 from bearophile_hugs at eml.cc 2012-10-16 13:30:48 PDT ---
(In reply to comment #1)

> Is the program behaving correctly otherwise ?

The program seems to work correctly.


> Are the mov's from the destroy() call or

This is the main:

__Dmain    comdat
L0:        push    EBP
mov    EBP,ESP
mov    EDX,9
L8:        sub    ESP,01000h
test    [ESP],ESP
dec    EDX
jne    L8
sub    ESP,0C40h
push    EDI
mov    ECX,02710h
xor    EAX,EAX
lea    EDI,-09C40h[EBP]
rep
stosd
lea    EAX,-09C40h[EBP]
call    near ptr _D6object31__T5clearTG100G100iTG100iVk100Z5clearFKG100G100iZv
xor    EAX,EAX
pop    EDI
leave
ret

The movs are inside the _D6object31__T5clear[...].


> are they trying to initialize a couple of ints on the stack to 0 ?

They seem to initialize a matrix literal.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list