-ffreestanding option of GCC
ali hagigat
hagigatali@gmail.com
Sun Jan 16 08:28:00 GMT 2011
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@google.com> wrote:
> ali hagigat <hagigatali@gmail.com> 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
>
More information about the Gcc-help
mailing list