Thank you Ian for the reply. If -ffreestanding is not specified , compiler may optimize the code based on considerations? without making sure if a function is built-in or it has been defined by a standard library? What are these modifications exactly? On Wed, Jan 5, 2011 at 8:20 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote: > ali hagigat <hagigatali@xxxxxxxxx> writes: > The -ffreestanding option directs the compiler to not assume that > standard functions have their usual definition, and to not assign any > special semantics to the function main. It does not change the linking > behaviour. You are looking for the -nostdlib option, or possibly > -nostartfiles or -nodefaultlibs. > > Ian >