step 1: subl helloworld.c
#helloworld.c
#include "stdio.h"
int main(int argc, char const *argv[])
{
printf("%s\n", "helloworld");
return 0;
}
step 2: in iterm2
gcc [-o helloworld.out] helloworld.c
finally: execute the executable outfile.
./helloworld.out
if you want to check the running-time, use time
before the command.
time ./helloworld.out
NOTICE:
header file is not created by windows, it` s not WINDOWS API.
so, in linux, stdio.h
is also need.