Microchip
直播中

王婷婷

7年用户 173经验值
私信 关注
[问答]

怎么使用编译器生成Windows代码?

亲爱的大家,有没有办法使用安装在我笔记本电脑上的用于MPLAB的C8和C16编译器来生成用于编译和链接在Windows笔记本电脑上执行的二进制文件的通用C代码,而不是为微芯片控制器生成二进制文件?与安装用于构建Windowscode.sMichael的附加C编译器相比,我更喜欢在两个任务中使用相同的编译器

以上来自于百度翻译


      以下为原文

    Dear all,

Is there a way to use the C8 and C16 compilers installed on my laptop for MPLAB to generate general C code for compiling and linking binaries executing on my Windows laptop rather than generate binaries for the microchip controllers?

I would prefere to use the same compiler for both tasks over installing an additional C compiler for building Windows code

thanks
Michael

回帖(4)

张娜

2019-5-29 10:12:57
嗯,没有-有很多原因

以上来自于百度翻译


      以下为原文

    Hmmm, no - for many reasons
举报

王焕树

2019-5-29 10:25:21
不!…或者,如果你想要第二种观点…:)

以上来自于百度翻译


      以下为原文

    No!
 
... or, if you'd like a second opinion...  :)

 
举报

李铭鑫

2019-5-29 10:32:36
您好,XC16和XC32编译器是从GCC的GNU编译器集合中开发的。您可以为Windows x86或IA64安装GCC C编译器,它与命令行选项、语用和属性非常相似,只要它与不同的处理器有关。https://en.wikipedia.org/wiki/GNU_Compiler。收藏没有C8编译器,8位PIC设备的高科技编译器被改名为XC8。

以上来自于百度翻译


      以下为原文

    Hi,
XC16 and XC32 compilers are developed from GNU Compiler Collection, GCC.
You may install GCC C compiler for Windows x86 or IA64, it is very much the same, command line options, pragmas and attributes, as far as it is relevant for the different processors.
https://en.wikipedia.org/wiki/GNU_Compiler_Collection
 
There is no C8 compiler, the Hi-Tech compiler for 8 bit PIC devices was renamed to XC8.
 
Regards,
   Mysil
举报

陈晨

2019-5-29 10:47:46
您还可以下载微软免费C Express编译器。

以上来自于百度翻译


      以下为原文

    You could also download the Microsoft free C express compiler.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分