|
发表于 2010-12-25 08:07:23
|
显示全部楼层
听说C++写的代码结构更好,更易读懂,更易维护,比C大不了多少,我想在51系列用C++,不知道用什么软件?好像IAR不支持51 C++编程。
修改:iar 官方好象说(E文不好),ew8051支持51系列用C++编写。在“EW8051_UserGuide.PDF”的318页有这样的文字:
Embedded C++
In Embedded C++ mode, the compiler treats the source code as Embedded C++. This
means that features specific to Embedded C++, such as classes and overloading, can be
used.
Embedded C++ requires that a DLIB library (C/C++ library) is used.
我理解是在下图的选项要这样选:
(原文件名:IAR选项.JPG)
但这样选了后编译通不过。提示缺文件:Error[e12]: Unable to open file 'C:\Program Files\IAR Systems\Embedded Workbench 5.4 Evaluation\8051\LIB\DLIB\dl-pli-nsic-1e16x01.r51'
上图中选回CLIB,编译可以通过。 |
|