#include "stdio.h" __attribute__((constructor)) void main() { char byte; unsigned int proc = giet_procid(); giet_tty_printf("Starting task HELLO on processor %d at cycle %d\n", giet_procid(), giet_proctime() ); while (1) { giet_tty_printf(" hello from processor %d\n", proc); giet_tty_getc((void*)&byte); if ( byte == 'q' ) giet_exit(); } } // end main