This is the mail archive of the
mailing list for the binutils project.
Re: Loop unrolling Problem !!
- From: Peter Barada <pbarada at mail dot wm dot sps dot mot dot com>
- To: chang at totoro dot ee dot ntust dot edu dot tw
- Cc: Peter dot Barada at motorola dot com, binutils at sources dot redhat dot com
- Date: Thu, 25 Jul 2002 11:13:17 -0400
- Subject: Re: Loop unrolling Problem !!
- References: <Pine.LNX.firstname.lastname@example.org>
>I know that the optimazation will solve this problem,
>but I am going to development a source level debugging tool(link gdb).
>if the code within an loop will be duplicate when specify -O0 ,
>I have no idea how to implement the break point, because the same source
>line will be map to more than one address in binary code in stabs debug
>if possible, will you give me a hand to tell me where the source
>related with this loop unrolling.
You could look into the GDB source to see how it handles it. I'd
think(I haven't looked at the code yet), that GDB picks the first(or
lowest) address that it finds.
I guess you haven't thought about what to do with inlined functions
yet(since in that case you'll have N copies of the function in the
code, one for each call, each with the same source line numbering.
Peter Barada Peter.Barada@motorola.com
Wizard 781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola) 781-270-0193 (fax)