features of Standard C++ supported by watcom version 11.0x

作者在 2008-08-22 15:34:07 发布以下内容
As of version 11.0x the following list applies:

Supported features

- bool Keyword
- mutable Keyword
- explicit Keyword
- Namespaces
- Run-Time Type Information (RTTI)
- New Cast Syntax
- Exception Specification

Not supported features

- typename Keyword
- Member Templates
- New Template Specialization Syntax
- Partial Specialization
- Template Function Call Syntax
- Method try Blocks
资料 | 阅读 5407 次
文章评论,共5条
vfdff(作者)
2008-08-22 15:37
1
that the WATCOM C/C++ compiler was not designed with beginners in<br />
mind.&nbsp;&nbsp;If you are just starting to learn C/C++ then I is suggest you get<br />
plenty of reading on C/C++ in general and OS-specific programming manuals<br />
(I.e., DOS, Windows, OS/2, QNX, or whatever target platform you are<br />
interested in building for).<br />
<br />
For a deeper understanding of WATCOM C/C++ you'll need to learn at least<br />
bits and pieces about what object files, libraries, dll's, makefiles, and<br />
protected mode are.
vfdff(作者)
2008-08-22 15:53
2
VC++缺陷:<br />
the lack of reliable performance<br />
tools and the klunky out-dated method of inline assembly keeps VC++ from being the performance compiler of choice
vfdff(作者)
2008-08-22 16:06
3
watcom 的调试方式:<br />
If running the debugger is out of the question or somehow problematic for you then you can generate a map file by putting &quot;option map=myprog&quot; on your link command line, or putting &quot;/fm=myprog&quot; on your wcl command line.<br />
This is most useful when you are compiling with debug info (&quot;/d2&quot; on your compile command line.)&nbsp;&nbsp;&nbsp;The resulting myprog.map file will correlate the line numbers in your program to relative addresses which can be matched against the &quot;Crash address&quot; given above.
vfdff(作者)
2008-08-22 16:11
4
WATCOM C/C++'s stack相关的注意事项:<br />
1. <br />
WATCOM C/C++'s stack, by default is 16K, so<br />
declaring a local array in a function of more than 4096 ints, say, will cause a stack fault with no clear explanation about the error.&nbsp;&nbsp;This error is ordinarily caught by debugging with runtime stack checking on (the default, without the &quot;/s&quot; switch.)<br />
2.<br />
pointers are not in &quot;far&quot; format, but rather in &quot;_FLAT&quot; format.&nbsp;&nbsp;So 0x0A0000000 is not the address of the VGA frame buffer, 0x0A0000 is.
vfdff(作者)
2008-08-24 19:06
5
使用openwatcom时需要设置的环境变量:path=.;d:\watcom\BINNT;d:\watcom\BINWe;F:\Program_Files\Microsoft Visual Studio\Tools\WinNT;F:\Program_Files\Microsoft Visual Studio\MSDev98\Bin;F:\Program_Files\Microsoft Visual Studio\Tools;F:\Program_Files\VC98\bin;f:\program_files\Modeltech_6.0d\win32;<br />
lib=.;%WATCOM%lib286;%WATCOM%lib286dos;F:\Program_Files\VC98\lib;F:\Program_Files\VC98\mfc\lib;F:\Program_Files\VC98\mfc\lib;&nbsp;&nbsp;<br />
include=.;D:\WATCOM\H\SYS;d:\watcom\H;d:\watcom\H\NT;F:\Program_Files\VC98\atl\include;F:\Program_Files\VC98\mfc\include;F:\Program_Files\VC98\include; <br />
watcom=d:\watcom;<br />
edpath=d:\watcom\EDDAT;
游客请输入验证码
浏览1942762次