#include <stdio.h>
#include <time.h>
int main(){
char buffer[200];
time_t time;
struct tm *loctime;
time = time(NULL);
loctime = localtime(&time);
printf(“My name is Javier Arroyo Cabello”);
strftime(buffer,SIZE,“Today is %c \n”,loctime);
printf("%s \n", buffer);
return 0;
}
To compile: arm-linux-gnueabi-gcc make -static -o helloWorld.bin helloWorld.c
To invoke: qemu-arm-static ./helloWorld.bin