summaryrefslogtreecommitdiff
path: root/components/cplusplus/README.md
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2014-11-01 09:09:21 +0800
committerBernard Xiong <[email protected]>2014-11-01 09:09:21 +0800
commitb84123b0b42f64a659b15887d196159d90b72810 (patch)
tree264c0fd4b122e1882202bb83e9c0b8c92b90871f /components/cplusplus/README.md
parent0797e54f3f5b58e54012570d9a6ff9443d7610d8 (diff)
[C++] Add cplusplus component
Diffstat (limited to 'components/cplusplus/README.md')
-rw-r--r--components/cplusplus/README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/components/cplusplus/README.md b/components/cplusplus/README.md
new file mode 100644
index 0000000000..cd133effaa
--- /dev/null
+++ b/components/cplusplus/README.md
@@ -0,0 +1,13 @@
+# C++ support for RT-Thread #
+
+This is the C++ component in RT-Thread RTOS. In order to support C++ language, this component
+implement a basic environment, such as new/delete operators.
+
+Because RT-Thread RTOS is used in embedded system mostly, there are some rules for C++ applications:
+1. DOES NOT use exception.
+2. DOES NOT use Run-Time Type Information (RTTI).
+3. Template is discouraged and it easily causes code text large.
+4. Static class variables are discouraged. The time and place to call their constructor function could not be precisely controlled and make multi-threaded programming a nightmare.
+5. Multiple inheritance is strongly discouraged, as it can cause intolerable confusion.
+
+*NOTE*: For armcc compiler, the libc must be enable.