
for check gcc version.
Revision 0:c90924697e25, committed 2015-10-21
- Comitter:
- mzta
- Date:
- Wed Oct 21 10:31:19 2015 +0000
- Child:
- 1:74efec1a152d
- Commit message:
- initial commit.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Oct 21 10:31:19 2015 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +Serial pc(USBTX, USBRX); + +int main() { +#if defined(__GNUC__) +# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) + pc.printf("GCC_VERSION=%d\n", GCC_VERSION); +#else + pc.printf("can not get GCC_VERSION\n"); +#endif +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Oct 21 10:31:19 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68 \ No newline at end of file