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



danc@iobjects.com (Dan Conti) writes:
> >   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.

That's right.

It will also mean that individual .o files, and libraries &c *are* larger.
But that has nothing to do with the *code* in the final image.

Is that why it looked like worse code?

	- Huge


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