[Dwarf-discuss] DWARF Issue 050808.2&body=Re: <ahref=http://dwarf.freestandards.org/ShowIssue.php

Chris Quenelle Chris.Quenelle
Tue Feb 28 17:43:16 GMT 2006


Daniel Berlin wrote:
> It would be nice to have an example in the next standard for what
> exactly it *is* used for

(I haven't finished catching up on dwarf email, so I don't
know if this has been answered yet)

The existing 'entry' tag is for recording an entry point
name and a set of parameters ("dummy arguments" in fortran)
and their types.  Here is an example:


         subroutine sub(num)
         integer num
         integer j
         j=num
10      write(*,*) j
         go to 20

         entry sub1(num1)
         j=num1+num1
20      j=j-1
         if ( j .eq. 0) return
         go to 10
         end


All of this code is one "function" and should be described
by one DW_TAG_subprogram tag.  Does that help?

You are right, it would have been more clear to call
the tag DW_TAG_alternate_entry_point, since it has
similar information to a DW_TAG_subprogram tag, but without
being allowed to contain many things that a subprogram
contains.

--chris



More information about the Dwarf-discuss mailing list