I want to generate asm files for the source code in C in CW 5.9.0 with MPC5644A. I could see the assembly code by right click on source code files and select the disassemble option. But that has to be done for all the source code files manually. Is there an option to chose and all the asm files are generated ?
From another post I came to know in CW 5.9.0 we cannot separate generate listing file for each C file. Is it posible to generate one consolidated listing file from .elf ?
Regards
Nagaraju
FYI: Another option is:
1) enable object files to be created by pragma store_object_files
https://community.nxp.com/message/98264?commentID=98264#comment-98264
2) enable Pre-linker batch runner:
3)create a batch file in your project folder that disassembles all object files generated e.g.
disassemble.bat:
"c:\Freescale\CW for MPC55xx and MPC56xx 2.10\PowerPC_EABI_Tools\Command_Line_Tools
\mwldeppc.exe" -S <Path to your project folder>\<ProjectName>_Data\internal_FLASH\ObjectCode
\*.o -o <Path to your project folder>\bin\
4) setup BatchRunner PreLinker to execute disassemble.bat before linking the project:
Rebuild the project and now the output directory should include the disassembly listings (*.s):
Stan
Hi
Yes, you can generate disassembly from .elf file.
all you need to do is to add .elf file into the IDE project and right click on it and select "Disassemble":
Hope it helps.
Stan
Thank you