aboutsummaryrefslogtreecommitdiff
path: root/docs/all/core-sh/bits.en.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/all/core-sh/bits.en.md')
-rw-r--r--docs/all/core-sh/bits.en.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/all/core-sh/bits.en.md b/docs/all/core-sh/bits.en.md
new file mode 100644
index 0000000..3497eef
--- /dev/null
+++ b/docs/all/core-sh/bits.en.md
@@ -0,0 +1,30 @@
+---
+title:
+---
+Your C/C++ compiler supports the SuperH architecture? That's great, not
+every one does! Once you have fulfilled
+[the requirements for the core module][c], here is what you shall define in
+your compiler's specific headers.
+
+# CPU type
+You shall define the `_SH` macro, and exactly one of these macros,
+representing your platform:
+
+ _SH1, _SH2, _SH2A, _SH2E, _SH2AFPU, _SH3, _SH3DSP,
+ _SH4, _SH4A, _SHALDSP, _SH5
+
+# DSP-C interface
+The DSP-C interface from the original Hitachi compiler is optional and has to
+be enabled using an option, `-dspc`. If your compiler currently supports
+fixed-point types, the `_DSPC` macro should be defined, otherwise, not.
+
+Then, if they are not already defined, it should define the following macros:
+
+- `__fixed`: the unsigned fract fixed-point type;
+- `__accum`: the unsigned accum fixed-point type;
+- `__sat`: saturated arithmetic qualifier;
+- `__circ`: modulo adressing qualifier;
+- `__X`: X memory data qualifier;
+- `__Y`: Y memory data qualifier.
+
+[c]: [all/core]bits