This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: compiling options
- To: Rafael Rodríguez Velilla <rrv at tid dot es>
- Subject: Re: [ECOS] compiling options
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 05 Apr 2001 20:56:30 +0100
- Cc: ecos <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Red Hat UK Ltd.
- References: <3ACCBF3C.ADDC266@tid.es>
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