how to design compiler for unix os

i have to design a compiler for unix os can anybody help me out to solve this problem