Compiler Listings

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compiler Listings

1,228 Views
bobw
Contributor I

For the life of me, I cannot get the compiler to generate listings for HCS08 and CFV1 using CW 10.0.

Anyone?

Labels (1)
0 Kudos
Reply
4 Replies

565 Views
CrasyCat
Specialist III

Hello

 

There are 2 ways of achieving that:

   1- If you want to check assembly code for a selected number of files:

        - Open the source file in an edit window

        - Click right inside of the edit window and select Disassemble. A new edit window is opened showing disassembly listing for selected file.

 

   2- If you want to check assembly code for a all files within the project:

       - Open the project Propertied dialog

       - Go to theC/C++ Build -> Settings page

       - Go to HCS08 Compiler -> General panel

       - Add option -Lasm to the Other flags edit box

       - Click on OK to save the changes

       - Rebuild the application. You should see the generated .lst files in your build directory.

 

CrasyCat

0 Kudos
Reply

565 Views
bobw
Contributor I

That worked for the HCS08. Thanks. Now how about for Coldfire?

0 Kudos
Reply

565 Views
CrasyCat
Specialist III

Hello

 

For Coldfire 

  1- If you want to check assembly code for a selected number of files:

        - Open the source file in an edit window

        - Click right inside of the edit window and select Disassemble. A new edit window is opened showing disassembly listing for selected file.

 

   2- If you want to check assembly code for a all files within the project:

       - Open the project Propertied dialog

       - Go to theC/C++ Build -> Settings page

       - Go to ColdFire-> Language Settings panel

       - Add option -S to the Other flags edit box

       - Click on OK to save the changes

       - Rebuild the application. You should see the generated .s files in your build directory.

 

I have notified the doc team that this needs to be better documented.

 

CrasyCat

0 Kudos
Reply

565 Views
bobw
Contributor I

Thanks CC.

 

What's confusing is that, in the Output options folder directly above the General folder, there is the following option:

"Generate Listing File (e.g. %n.lst)(-Lasm)" This lead me to believe the option should be set here.... -Lasm=%n.lst

This really needs some clarification, since compiler listings are OUTPUT options, not GENERAL options.

 

 

0 Kudos
Reply