It has been told a lot of times...
You could use the search button or even read the FAQ about it.
have a look carefully in Project->Options then Compiler Options.
spent some hours on it, create build modes (debug and release)
and try all combinations to obtain the exact thing that you want

(i did learn by tring all options ^^)