]> rtime.felk.cvut.cz Git - arc.git/blobdiff - include/Compiler.h
Isr almost done
[arc.git] / include / Compiler.h
index 822202b3a6ee7c4d46c81ea4039ee20967d333d0..7d6303f005e21c1dc52b29e847dc420c7dea610a 100644 (file)
 \r
 /* REQ:COMPILER040,049,051 */\r
 #define AUTOMATIC\r
-#define _STATIC_       static\r
+#define STATIC         static\r
 #define NULL_PTR       ((void *)0)\r
 \r
+#if defined(__GNUC__)\r
+#define CC_EXTENSION   __extension__\r
+#elif defined(__CWCC__)\r
+#define CC_EXTENSION\r
+#endif\r
+\r
+#if defined(__GNUC__)\r
+#define SECTION_BALIGN(_align )  __attribute__ ((aligned (_align)));\r
+#else\r
+#error SECTION_BALIGN not defined for compiler\r
+#endif\r
+\r
+\r
 /* REQ:COMPILER005 */\r
 /* TODO: skip the memclass for now */\r
 #define FUNC(rettype,memclass) rettype\r