From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn To: Richard Shih-Ping Chan Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] For GCCv3: recommend -fno-builtin and remove -fvtable-gc Date: Tue, 10 Jul 2001 00:29:00 -0000 Message-id: <20010710092918.H344@biferten.ma.tech.ascom.ch> References: <20010710094111.A12594@cshihpin.dso.org.sg> X-SW-Source: 2001-07/msg00252.html 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