CodeWarrior Disassembly Listing

Started by Bob White February 13, 2003
I apologise for posting a purely CodeWarrior question, but I haven't been
able to post to their newsgroup (using Outlook Express and it appears to
have Windowed-out on me).

I'm using an HC12 and CodeWarrior, and am looking for a way to see the
assembly code generated by the compiler without bothering to invoke the
debugger, load the program, and execute it to see the code.

I found a switch in the compiler that says "use Decoder to generate
Disassembly Listing". I checked it, hoping that it will create a listing,
but if it does, I can't find it. I don't know the filename or where to look
for it. Anyone have a tip?

Thanks,
Bob White



http://groups.google.com/groups?hlamp;lr=&ie=UTF-8&group=codewarrior.embedde
d



Start from a .s19 file, or .o file.

In DECODER/Option:
- Output: - Decode Dwarf section (ELF)
- Show cycle count
- Write disassembled listing with source and all comments
(Hiware)
- Input: - Object file format = s records
- Set processor (...)
- ok

It will generate a .lst file, in which you'll have registers in numbers, so
you need to translate them from your specific microcontroller register.

Stefan



You want the compiler to generate a listing - right?

Its under:
Target Settings->Compiler for HC12->Options->Output Tab->Generate listing file

Don't know why you couldn't find it ;-)

_________________________________________________________________________
| Todd Morton | |
| Professor | http://eet.etec.wwu.edu/toddm |
| Electronics Engineering Technology | Voice: (360)650-2918 |
| Western Washington University | FAX: (360)650-4847 |
_________________________________________________________________________ On Thu, 13 Feb 2003, Bob White wrote:

> I apologise for posting a purely CodeWarrior question, but I haven't been
> able to post to their newsgroup (using Outlook Express and it appears to
> have Windowed-out on me).
>
> I'm using an HC12 and CodeWarrior, and am looking for a way to see the
> assembly code generated by the compiler without bothering to invoke the
> debugger, load the program, and execute it to see the code.
>
> I found a switch in the compiler that says "use Decoder to generate
> Disassembly Listing". I checked it, hoping that it will create a listing,
> but if it does, I can't find it. I don't know the filename or where to look
> for it. Anyone have a tip?
>
> Thanks,
> Bob White >
>
> -------------------- >
> ">http://docs.yahoo.com/info/terms/ >




This does generate a listing file for each module, but if you want one
listing for the whole projected linked together, you need to use decoder.exe
as described.

Paul Johnson

> -----Original Message-----
> From: Todd Morton [mailto:]
> Sent: Thursday, February 13, 2003 3:08 PM
> To:
> Subject: Re: [68HC12] CodeWarrior Disassembly Listing >
> You want the compiler to generate a listing - right?
>
> Its under:
> Target Settings->Compiler for HC12->Options->Output Tab->Generate
> listing file
>
> Don't know why you couldn't find it ;-)
>
> _________________________________________________________________________
> | Todd Morton | |
> | Professor | http://eet.etec.wwu.edu/toddm |
> | Electronics Engineering Technology | Voice: (360)650-2918 |
> | Western Washington University | FAX: (360)650-4847 |
> _________________________________________________________________________ > On Thu, 13 Feb 2003, Bob White wrote:
>
> > I apologise for posting a purely CodeWarrior question, but I
> haven't been
> > able to post to their newsgroup (using Outlook Express and it appears to
> > have Windowed-out on me).
> >
> > I'm using an HC12 and CodeWarrior, and am looking for a way to see the
> > assembly code generated by the compiler without bothering to invoke the
> > debugger, load the program, and execute it to see the code.
> >
> > I found a switch in the compiler that says "use Decoder to generate
> > Disassembly Listing". I checked it, hoping that it will create
> a listing,
> > but if it does, I can't find it. I don't know the filename or
> where to look
> > for it. Anyone have a tip?
> >
> > Thanks,
> > Bob White
> >
> >
> >
> >
> > --------------------
> >
> >
> >
> > ">http://docs.yahoo.com/info/terms/


--------------------
">http://docs.yahoo.com/info/terms/



Bob,
Another way to view the disassembly of one particular c module that I use a
lot is to right click over the c source window in the Metrowerks IDE and
choose "Disassemble", this opens a .c.lst window with the listing. You also
have Compile and Preprocess options, this last one is very usefull.
Bye,
Guillermo F. Molina

----- Original Message -----
From: "Bob White" <>
To: <>
Sent: Thursday, February 13, 2003 7:15 PM
Subject: [68HC12] CodeWarrior Disassembly Listing > I apologise for posting a purely CodeWarrior question, but I haven't been
> able to post to their newsgroup (using Outlook Express and it appears to
> have Windowed-out on me).
>
> I'm using an HC12 and CodeWarrior, and am looking for a way to see the
> assembly code generated by the compiler without bothering to invoke the
> debugger, load the program, and execute it to see the code.
>
> I found a switch in the compiler that says "use Decoder to generate
> Disassembly Listing". I checked it, hoping that it will create a listing,
> but if it does, I can't find it. I don't know the filename or where to
look
> for it. Anyone have a tip?
>
> Thanks,
> Bob White >
>
> -------------------- >
> ">http://docs.yahoo.com/info/terms/




Bob --

Try this strategy if you think it is outputting something and the problem
simply is that you can't find out what the filename is and where it puts it.

Leave your system inactive for a few hours to generate a time window.

Run the compile.

Fire up the windows search function and select "search for files and
folders"

Under "search options" select "date" and search for the last day.

Run search and view the results window. arrange the results so you see the
date/time stamp on each file. Click on the column header to cause the
results to be sorted by that column.

Eye scan down that column to the time you ran the complie. It should be in
there somewhere.

If all else fails, switch to ICC12 which always generates a nice assembly
listing.

Happy hunting, Bob Smith --- Avoid computer viruses, Practice safe hex ---

-- Specializing in small, cost effective
embedded control systems -- Robert L. (Bob) Smith
Smith Machine Works, Inc.
9900 Lumlay Road
Richmond, VA 23236 804/745-1065
----- Original Message -----
From: "Bob White" <>
To: <>
Sent: Thursday, February 13, 2003 5:15 PM
Subject: [68HC12] CodeWarrior Disassembly Listing > I apologise for posting a purely CodeWarrior question, but I haven't been
> able to post to their newsgroup (using Outlook Express and it appears to
> have Windowed-out on me).
>
> I'm using an HC12 and CodeWarrior, and am looking for a way to see the
> assembly code generated by the compiler without bothering to invoke the
> debugger, load the program, and execute it to see the code.
>
> I found a switch in the compiler that says "use Decoder to generate
> Disassembly Listing". I checked it, hoping that it will create a listing,
> but if it does, I can't find it. I don't know the filename or where to
look
> for it. Anyone have a tip?
>
> Thanks,
> Bob White >
>
> -------------------- >
> ">http://docs.yahoo.com/info/terms/ >





Hi Bob,

... disassembly listings are placed in \bin subdirectory derived of
your project directory at default for each of your module.

There are also the .abs and .abs.s19(s-records) and the overall .map
file provided that dedicated compiler options told in postings before
are switched on... I always read them into CW IDE editor, exclusively
the .abs binaries for sure :) Regards

Christian

--- In , "Robert Smith" <bobsmith5@e...> wrote:
> Bob --
>
> Try this strategy if you think it is outputting something and the
problem
> simply is that you can't find out what the filename is and where it
puts it.
>
> Leave your system inactive for a few hours to generate a time
window.
>
> Run the compile.
>
> Fire up the windows search function and select "search for files and
> folders"
>
> Under "search options" select "date" and search for the last day.
>
> Run search and view the results window. arrange the results so you
see the
> date/time stamp on each file. Click on the column header to cause
the
> results to be sorted by that column.
>
> Eye scan down that column to the time you ran the complie. It
should be in
> there somewhere.
>
> If all else fails, switch to ICC12 which always generates a nice
assembly
> listing.
>
> Happy hunting, Bob Smith > --- Avoid computer viruses, Practice safe hex ---
>
> -- Specializing in small, cost effective
> embedded control systems -- > Robert L. (Bob) Smith
> Smith Machine Works, Inc.
> 9900 Lumlay Road
> Richmond, VA 23236 804/745-1065
>
> bobsmith5@e...
>
> ----- Original Message -----
> From: "Bob White" <bob@w...>
> To: <>
> Sent: Thursday, February 13, 2003 5:15 PM
> Subject: [68HC12] CodeWarrior Disassembly Listing > > I apologise for posting a purely CodeWarrior question, but I
haven't been
> > able to post to their newsgroup (using Outlook Express and it
appears to
> > have Windowed-out on me).
> >
> > I'm using an HC12 and CodeWarrior, and am looking for a way to
see the
> > assembly code generated by the compiler without bothering to
invoke the
> > debugger, load the program, and execute it to see the code.
> >
> > I found a switch in the compiler that says "use Decoder to
generate
> > Disassembly Listing". I checked it, hoping that it will create a
listing,
> > but if it does, I can't find it. I don't know the filename or
where to
> look
> > for it. Anyone have a tip?
> >
> > Thanks,
> > Bob White
> >
> >
> >
> >
> > --------------------
> >
> >
> >
> > ">http://docs.yahoo.com/info/terms/
> >
> >
> >




Bob, did you see the context menu?

It has a "Disassemble" option for source files contained in a project. The same entry also appears in the context menu for the files
tab in the project window.

The "Use decoder to generate Disassembly Listing" checkbox configures whether this listing is generated by the compiler itself or by
decoding the object file with the decoder.exe.

The compiler generated one has the same content as using the "Target Settings->Compiler for HC12->Options->Output Tab->Generate
listing file" option.
Note that both kinds of disassebly text is done in a pre link phase, so addresses of globals are not known yet.

If you need a post linking disassembly listing you have to use the decoder.
Either as standalone tool (just call it like "decoder.exe fibo.abs"), with its GUI (just "decoder.exe") or, for advanced CodeWarrior
users only:
You can even decode abs files within the ide. To do this you have to add the abs to a build target and then you can use its context
menu to disassemble.
Note that this build target will not build anymore with this abs in it, so you have to create a
new one. Best is to use the Libmaker as linker to avoid the error message. That's why I called it an advanced solution.

Bye

Daniel
> -----Original Message-----
> From: Todd Morton [mailto:]
> Sent: Friday, February 14, 2003 0:08
> To:
> Subject: Re: [68HC12] CodeWarrior Disassembly Listing >
> You want the compiler to generate a listing - right?
>
> Its under:
> Target Settings->Compiler for HC12->Options->Output Tab->Generate listing file
>
> Don't know why you couldn't find it ;-)
>
> _________________________________________________________________________
> | Todd Morton | |
> | Professor | http://eet.etec.wwu.edu/toddm |
> | Electronics Engineering Technology | Voice: (360)650-2918 |
> | Western Washington University | FAX: (360)650-4847 |
> _________________________________________________________________________ > On Thu, 13 Feb 2003, Bob White wrote:
>
> > I apologise for posting a purely CodeWarrior question, but I haven't been
> > able to post to their newsgroup (using Outlook Express and it appears to
> > have Windowed-out on me).
> >
> > I'm using an HC12 and CodeWarrior, and am looking for a way to see the
> > assembly code generated by the compiler without bothering to invoke the
> > debugger, load the program, and execute it to see the code.
> >
> > I found a switch in the compiler that says "use Decoder to generate
> > Disassembly Listing". I checked it, hoping that it will create a listing,
> > but if it does, I can't find it. I don't know the filename or where to look
> > for it. Anyone have a tip?
> >
> > Thanks,
> > Bob White
> >
> >
> >
> >
> > --------------------
> >
> >
> >
> > ">http://docs.yahoo.com/info/terms/
> >
> >
> > -------------------- >
> ">http://docs.yahoo.com/info/terms/