This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

Re: compiling options


Rafael Rodríguez Velilla wrote:
> 
>   I have seen some options that are default in eCos while compiling for
> which I can't find documentation. these are:
> -fdata-sections
> -fno-rtti
> -fno-exceptions

See http://gcc.gnu.org/onlinedocs/gcc_3.html for these and
-ffunction-sections

The -fno-exceptions is the opposite of -fexceptions - it disables C++
exceptions support.

> -fvtable-gc

Garbage collect unused C++ vtable entries.

> -finit-priority

C++ constructor priorities. Required for eCos.

> -Wl,--gc-sections

"-Wl," means it is passed to the linker. See:
http://sources.redhat.com/binutils/docs-2.10/ld_2.html#SEC2

>   I have also read that ffunction-sections is used but I don't
> understand why. It seems to generate worse code, which is its advantage?

Why do you think so?

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


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