CW 5.9.0 MCP5604 C List file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

CW 5.9.0 MCP5604 C List file

跳至解决方案
1,292 次查看
dermotmurphy
Contributor I

Hi,

 

Is there any way to generate a list file from each C file within the IDE?

The disassembly file is not sufficient, as I am trying to compare a build from within the IDE to one created using a make file.

 

Alternatively, is it possible to generate the command line which the IDE is using at the point of compiling a C file, and later the command line which the IDE is using at the point of linking?

 

The make file generated ELF runs ok, whereas the IDE created ELF links, but does not run ok.

 

regards

Dermot

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,140 次查看
TICS_Fiona
NXP Employee
NXP Employee

CodeWarrior for MPC55xx v2.10 can't generate a list file for C code.

The "Generate Listing File" in the target setting panel can function when you have the assemble files included in the project. It is only valid for the assemble code.

To generate the Listing File for C language file, please use <Disassemble> command as you have done. The dump file (Listing File) can contain the c-source line and the corresponding assembler lines. To generate it please open the C file in CodeWarrior Editor, and right click the mouse in it. And on the pop-up menu, please choose <Disassemble>. 

In Target Settings, please view Code Generation ->EPPC Disassembler. User can select the information that he want to display in the dump file.

When build with command line tool, user can get list files by command line tool. User can get disassemble file by ‘-o’ option.

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,141 次查看
TICS_Fiona
NXP Employee
NXP Employee

CodeWarrior for MPC55xx v2.10 can't generate a list file for C code.

The "Generate Listing File" in the target setting panel can function when you have the assemble files included in the project. It is only valid for the assemble code.

To generate the Listing File for C language file, please use <Disassemble> command as you have done. The dump file (Listing File) can contain the c-source line and the corresponding assembler lines. To generate it please open the C file in CodeWarrior Editor, and right click the mouse in it. And on the pop-up menu, please choose <Disassemble>. 

In Target Settings, please view Code Generation ->EPPC Disassembler. User can select the information that he want to display in the dump file.

When build with command line tool, user can get list files by command line tool. User can get disassemble file by ‘-o’ option.

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,140 次查看
dermotmurphy
Contributor I

Hi,

Thanks for your reply.

It would seem to be a serious omission to prevent the user being able to see exactly what command line the IDE is passing to the compiler and linker.

In my case, it added a lot of work to get the IDE to compile the files in such a way that they matched the files produced by a batch file using the command line compiler.  The disassemble feature is insufficient as it cannot display the options used to compile the source file.

The Codewarrior S12 compiler, for example, allows the user to see the command line passed by the IDE to both the compiler and linker.

Maybe it is worth considering this feature for a future release of the MCP56xx compiler.

Regards

Dermot

0 项奖励
回复
1,140 次查看
TICS_Fiona
NXP Employee
NXP Employee

Thank you for great advise.

We improved this in CodeWarrior v10.6  for MCU, user can get the command and options used by the CodeWarrior IDE in Project Properties-> C/C++ Build-> Settings-> PowerPC Linker(Compiler, Assembler).

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复