Compiler Listings

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Compiler Listings

1,276件の閲覧回数
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?

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

613件の閲覧回数
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 件の賞賛
返信

613件の閲覧回数
bobw
Contributor I

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

0 件の賞賛
返信

613件の閲覧回数
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 件の賞賛
返信

613件の閲覧回数
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 件の賞賛
返信