How to make smallest memory usage?

What compile switch?

What link switch?

What tricks?