完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有几个较老的项目与8位PIC MCU,这是编译与旧的高科技C编译器(V963)在MPLAB 8环境下。现在我想迁移到XC8编译器。这两个编译器兼容吗?是否存在任何已知的差异?我试图找到一些能回答我问题的文件,但什么也没找到。当然,我没有正确地搜索。实际上我用XC8编译了它们,没有出现错误。这是否意味着所得到的图像在功能上与旧图像相同?起初我很惊讶,因为新的图像是更小的一些KB,但我想这是与优化的差异。
以上来自于百度翻译 以下为原文 I have several older projects with 8-bit PIC MCUs which were compiled with the older Hi-TECH C compiler (v9.83) under the MPLAB 8 environment. Now I want to migrate to the XC8 compiler. Are the two compilers compatible? Do any known discrepancies exist? I tried to find some document that could answer my question but nothing came up. It could be of course that I didn't search correctly. I actually did compile them with XC8 and no error came up. Does that mean that the resulting image is functionally the same as the old one? At first I was surprised because the new image is smaller by some kB, but I suppose this is related with differences in the optimization. |
|
相关推荐
4个回答
|
|
Microchip收购了高科技并改名为XC8编译器。它实际上是编译器的一个新版本。在同一编译器的两个版本之间不会得到相同的图像。您的HITECH编译器是否被许可?XC8是免费还是EVE模式?
以上来自于百度翻译 以下为原文 Microchip bought Hi-tech and renamed the compiler XC8. It is effectively a new version of that compiler. You would not get an identical image between two versions of the same compiler. Is your hitech compiler licsenced? Is XC8 in free or eval mode? |
|
|
|
你说得对,对不起。我忘了提到这两个编译器都是免费版本。编辑:确切地说,高科技PICC编译器(V963)是在Lite操作模式和XC8(V1.40)在自由运行模式。嗯,谢谢你的澄清,我不知道它实际上是同一个编译器…我不明白你的意思,虽然…你不会得到一个相同的图像之间…
以上来自于百度翻译 以下为原文 You're right, sorry. I forgot to mention that both compilers are the free versions. EDIT: To be precise, the HI-TECH picc compiler (v9.83) is in the Lite operation mode and the XC8 (v1.40) in the Free operation mode. Well, thanks for the clarification, I didn't know that it is actually the same compiler...!! I didn't understand what you mean though with "... You would not get an identical image between... " |
|
|
|
嗨,一些创建高科技编译器的人现在在微芯片上工作,不断地开发编译器,既支持新的PIC设备,又改进生成的代码。编译器的自由版本对源文件级别的代码进行优化,而不是FI。AN全程序优化,这是启用的PRO模式许可证。不同版本的同一编译器应允许创建不同的代码,因为不同的优化设置将。如果源是正确的,不同版本的编译器没有错误,代码生成。ED应该在功能上是等价的。如果你还没有完成,你可能有2个月的PRO优化模式的试用许可证,有一个提示,当你安装一个更新版本的编译器。迈西尔
以上来自于百度翻译 以下为原文 Hi, Some of the people creating the Hi-Tech compiler now work in Microchip, continually developing the compiler. Both to support new PIC devices, and to improve the code generated. Also the free version of the compiler do some optimization of the code generated, on the source file level, but not the final whole program optimization, that is enabled with a Pro mode license. Different versions of the same compiler shall be allowed to create different code, as different optimization settings will. If the source is correct, and the different versions of the compiler doesn't have bugs, the code generated should be functionally equivalent. If you have not done already, you may have a 2 month trial license of the Pro optimization mode, there is a prompt, when you install a update version of the compiler. Mysil |
|
|
|
正如Mysil所说。不期望同一编译器的两个不同版本会产生相同的源代码相同的HEX文件。但是,这是可能的。我认为XC8允许在自由模式下比HealTeo做更多的优化。
以上来自于百度翻译 以下为原文 AS Mysil said. It would not be expected that two different versions of the same compiler will produce the same Hex File given the same source code. But , it is possible. I think the XC8 allows more optimizations in free mode than Hi-Tech did. |
|
|
|
只有小组成员才能发言,加入小组>>
5170 浏览 9 评论
2001 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3176 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
737浏览 1评论
620浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
509浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
635浏览 0评论
531浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 16:09 , Processed in 1.535833 second(s), Total 84, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号