This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: compiling options
- To: "ecos" <ecos-discuss at sourceware dot cygnus dot com>
- Subject: RE: [ECOS] compiling options
- From: danc at iobjects dot com (Dan Conti)
- Date: Thu, 5 Apr 2001 12:57:53 -0700
> 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
> -fvtable-gc
> -finit-priority
> -Wl,--gc-sections
>
> Can somebody tell me what are they for or where is the documentation
> about those?
http://www.gnu.org/manual/
check out the manual for gcc, it has information about various command line
options.
>
> 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?
-ffunction-sections causes functions to be put in their own section. used in
conjunction with --gc-sections, you get selective linking, so that functions
that aren't called aren't linked in to your final image.
-Dan
>
> --
> Rafael Rodríguez Velilla rrv@tid.es
> Telefónica I+D http://www.tid.es
> Telf: +34 - 91 337 4270
>
>
>
>