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: For GCCv3: recommend -fno-builtin and remove -fvtable-gc


On Tue, Jul 10, 2001 at 09:41:11AM -0800, Richard Shih-Ping Chan wrote:
> Hi eCos team - I would like to make two suggestions for GCC3
> 
> [1] Make -fno-builtin a default command line option.
> 
> This is to prevent unwanted optimisations of builtin functions
> at the default optimisation level of -g -O2. An example is
> the optimisation of printf and the consequent introduction of
> extra symbols like putchar and puts by GCCv3.

I don't think this is a good idea. Some of the build in functions are
optimized for the particular architecture, eg memcpy, memset,
etc. They will be faster than the equivelent in the eCos library.

Is there a -fno-builtin-printf command line option? Just turn off that
feature. The other option would be to rename printf in redboot, so the
optimizer does not recognise it.

        Andrew


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