1. Exception handlingUnfortunately all supported Watcom compilers fail to pass exception test suite when compiled with standard compile options. Observations:
Workaround: You can use the -d2i option to make exception handling usable (this was tested with OpenWatcom 1.3 only). The -d2i makes compiler to emit ALL inline functions as standard function calls, which is of course with some performance penalty. Altough -d2i debug option by default disables all optimisations, you can re-enable them by placing -o* options AFTER the -d2i. This example enable speed optimisation: wpp386 -d2i -ot <remaining_arguments> In order to get rid of debugging information from the final executable you should use the strip utility supplied with Watcom or disable emiting them at link stage. 1.1. Watcom's native exception headersFor now only the except.h is used in STLport. Standard exceptions header (exceptio.h) cannot be used due to hack in it: the stream class is redefined with primitive stub, which clashes with the STLport streams; STLPort's standard exception classes are used instead. |