for check gcc version.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mzta
Date:
Thu Oct 22 10:14:15 2015 +0000
Parent:
0:c90924697e25
Child:
2:50d77aa2ab58
Commit message:
Add output ARMCC version

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Oct 21 10:31:19 2015 +0000
+++ b/main.cpp	Thu Oct 22 10:14:15 2015 +0000
@@ -3,6 +3,7 @@
 Serial pc(USBTX, USBRX);
 
 int main() {
+    pc.printf("ARMCC_VERSION=%d\n", __ARMCC_VERSION);
 #if defined(__GNUC__)
 #  define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
     pc.printf("GCC_VERSION=%d\n", GCC_VERSION);