我从未对查看原始的.S文件感兴趣,但我经常使用XC16提供的实用工具xc16-objdump来获取.lst文件,该文件显示与生成的汇编语言交错的C源。单击您正在处理的配置下的构建。单击标记为“在构建之后执行此行”的复选框,将下列内容粘贴到该复选框(所有一行)${MP_CC_DIR}/xc16-objdump-S${ImageDir}/${PROJECTNAME}.${IMAGE_TYPE}.elf>${ImageDir}/${PROJECTNA中lst文件将出现在与.hex文件相同的目录中。它适用于MPLABX版本3.45和XC16版本1.26,但是我已经将它与许多以前的IDE版本和编译器一起使用。
以上来自于百度翻译
以下为原文
I have never been interested in seeing raw
.S files, but I frequently use the utility
xc16-objdump, which is supplied with XC16, to get a
.lst file that shows C source interleaved with generated assembly language.
Here's the way I do it:
- Right-click the project's icon in the Project pane and select Properties
- Click Building under the configuration you are dealing with.
- Click the checkbox labelled Execute this line after build
- Paste the following into the line below that checked box (all one line)
${MP_CC_DIR}/xc16-objdump -S ${ImageDir}/${PROJECTNAME}.${IMAGE_TYPE}.elf > ${ImageDir}/${PROJECTNAME}.${IMAGE_TYPE}.lst
- The .lst file will appear in the same directory as the .hex file.
It works for me with MPLABX version 3.45 and XC16 version 1.26, but I have used it with lots of previous versions of IDE and compiler.
Regards,
Dave
我从未对查看原始的.S文件感兴趣,但我经常使用XC16提供的实用工具xc16-objdump来获取.lst文件,该文件显示与生成的汇编语言交错的C源。单击您正在处理的配置下的构建。单击标记为“在构建之后执行此行”的复选框,将下列内容粘贴到该复选框(所有一行)${MP_CC_DIR}/xc16-objdump-S${ImageDir}/${PROJECTNAME}.${IMAGE_TYPE}.elf>${ImageDir}/${PROJECTNA中lst文件将出现在与.hex文件相同的目录中。它适用于MPLABX版本3.45和XC16版本1.26,但是我已经将它与许多以前的IDE版本和编译器一起使用。
以上来自于百度翻译
以下为原文
I have never been interested in seeing raw
.S files, but I frequently use the utility
xc16-objdump, which is supplied with XC16, to get a
.lst file that shows C source interleaved with generated assembly language.
Here's the way I do it:
- Right-click the project's icon in the Project pane and select Properties
- Click Building under the configuration you are dealing with.
- Click the checkbox labelled Execute this line after build
- Paste the following into the line below that checked box (all one line)
${MP_CC_DIR}/xc16-objdump -S ${ImageDir}/${PROJECTNAME}.${IMAGE_TYPE}.elf > ${ImageDir}/${PROJECTNAME}.${IMAGE_TYPE}.lst
- The .lst file will appear in the same directory as the .hex file.
It works for me with MPLABX version 3.45 and XC16 version 1.26, but I have used it with lots of previous versions of IDE and compiler.
Regards,
Dave
举报