This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -ffreestanding option of GCC


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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]