完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
如果是的话,在MPLAX中有什么特别的东西要生产吗?我看到.HEX文件和.O文件,但不是.s,或.ASM。
以上来自于百度翻译 以下为原文 And if so, is there anything special one has to do in MPLAB X to produce them? I see .hex files and .o files, but not .s, or .asm. |
|
相关推荐
6个回答
|
|
|
我从未对查看原始的.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:
Regards, Dave |
|
|
|
|
|
常规的GCC有一个命令行开关“保存临时模块”,它节省了预处理器输出和汇编程序。我不知道你能否用XC16来做。
以上来自于百度翻译 以下为原文 The regular GCC has a command line switch "-save-temps" which saves pre-processor output and assembler. I don't know if you can do it with XC16. |
|
|
|
|
|
|
|
|
|
|
|
谢谢,这很有帮助。第一行中的路径中的斜线需要朝相反的方向,但是一旦我修复了它,它就生成了.lst文件,这实际上是我在寻找的。
以上来自于百度翻译 以下为原文 Thanks, this was helpful. The slash in the path in the first line needed to be in the opposite direction, but once I fixed that, it generated the .lst file, which is actually what I was looking for. |
|
|
|
|
|
是否有一种方法来设置编译器或IDE,以便这是新项目的默认值?
以上来自于百度翻译 以下为原文 Is there a way to set the compiler or IDE up so that this is the default with new projects? |
|
|
|
|
|
对于任何其他有此问题的人来说,我发现生成.s文件(它与.c源文件放在同一个目录中)最简单的方法是将-save-temps选项放在xc16-as“Additional.”行中。正如他提到的,结果出现了.HEX文件。
以上来自于百度翻译 以下为原文 And for anyone else who has this question, the easiest way I found to generate the .s file (it is placed in the same directory as the .c source file, is to put the -save-temps option in the xc16-as "Additional options" line. Generating the listing file works with the instructions from davekw7x, and the result appears, as he mentioned, whever the .hex file is. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1124浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1098浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 09:26 , Processed in 0.914664 second(s), Total 84, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1546