#include #include extern volatile uint32_t uwTick; extern uint32_t SystemCoreClock; float foo=2.2; double bar=3.3; int main(int argc, const char *argv[]) { printf ("argc is %d\n", argc); for (int i = 0; i < argc; i++) printf ("%s ", argv[i]); printf ("\ncompiler version %s\n", __VERSION__); printf ("%f %lf\n", foo*foo, bar*bar); printf("clock is %ld \n", SystemCoreClock); printf("clock is %ld Mhz \n", SystemCoreClock/1000000); uint32_t start = uwTick; uint32_t end; { volatile unsigned int i = 0xfffff; while(i--); } end = uwTick; printf("Loop run in %d ms\n", (int)(end - start)); return 0; }