Re: asm output with source lines; why is this so painful???

From: Dan Miller (dan_at_invalid.net)
Date: 10/18/05


Date: Tue, 18 Oct 2005 15:38:11 -0500

Okay, I figured out part of this listing... the asm code has ".loc"
entries which refer to line numbers in the C source file. However, the
section of code which contains the floating-point functions does not
contain .loc entries, and the nearest .loc entries above and below the
problem code jump from 6719 to 6943, though there's only 77 lines of asm
between them.

The actual code that I'm trying to locate, contains other labels that I
don't yet know the meaning of (LCFI, LVL, LCFI)... Can anyone give me
further insights into decoding this?? At the risk of information
overload, I'm including the section of my asm output which contains one
of the offending entries (call __fixdfsi)...

Dan Miller

 34556 .loc 1 6719 0
 34557 .L1403:
 34558 481e 50 pushl %eax
 34559 .LCFI1078:
 34560 .LVL1865:
 34561 481f 8B84960C movl 7180(%esi,%edx,4),%eax
 34561 1C0000
 34562 4826 50 pushl %eax
 34563 .LCFI1079:
 34564 .LVL1866:
 34565 4827 8B869C1C movl 7324(%esi),%eax
 34565 0000
 34566 482d 8D0480 leal (%eax,%eax,4),%eax
 34567 4830 8D0480 leal (%eax,%eax,4),%eax
 34568 4833 8D0480 leal (%eax,%eax,4),%eax
 34569 4836 C1E003 sall $3,%eax
 34570 4839 50 pushl %eax
 34571 .LCFI1080:
 34572 .LVL1867:
 34573 483a 8B4C2424 movl 36(%esp),%ecx
 34574 483e 8BACCEA4 movl 7332(%esi,%ecx,8),%ebp
 34574 1C0000
 34575 .LVL1868:
 34576 4845 55 pushl %ebp
 34577 .LCFI1081:
 34578 .LVL1869:
 34579 4846 8B9CCEA0 movl 7328(%esi,%ecx,8),%ebx
 34579 1C0000
 34580 484d 53 pushl %ebx
 34581 .LCFI1082:
 34582 .LVL1870:
 34583 .LCFI1083:
 34584 484e E8FCFFFF call __fixdfsi
 34584 FF
 34585 4853 5A popl %edx
 34586 .LCFI1084:
 34587 .LVL1871:
 34588 4854 59 popl %ecx
 34589 .LCFI1085:
 34590 .LVL1872:
 34591 4855 50 pushl %eax
 34592 .LCFI1086:
 34593 .LVL1873:
 34594 4856 B8D34D62 movl $274877907,%eax
 34594 10
 34595 485b 8B4C2428 movl 40(%esp),%ecx
 34596 485f F7A48EDC mull 6876(%esi,%ecx,4)
 34596 1A0000
 34597 4866 C1EA06 shrl $6,%edx
 34598 4869 52 pushl %edx
 34599 .LCFI1087:
 34600 .LVL1874:
 34601 486a 8BAEC41D movl 7620(%esi),%ebp
 34601 0000
 34602 4870 55 pushl %ebp
 34603 .LCFI1088:
 34604 .LVL1875:
 34605 4871 51 pushl %ecx
 34606 .LCFI1089:
 34607 .LVL1876:
 34608 4872 689C0D00 pushl $.LC126
 34608 00
 34609 .LCFI1090:
 34610 .LVL1877:
 34611 4877 E8FCFFFF call printk
 34611 FF
 34612 487c 83C420 addl $32,%esp
 34613 .LCFI1091:
 34614 .LVL1878:
 34615 487f E92FF7FF jmp .L1277
 34615 FF
 34616 .loc 1 6943 0
 34617 .LVL1879:
 34618 .L1416:
 34619 4884 68710300 pushl $.LC135
 34619 00
 

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----