Create gen_lookup_table.c

C program to generate a lookup table for embedded usage.