This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Undefined references to 'memcpy' when compiling Linux Kernel
- To: John Hughes <john at Calva dot COM>
- Subject: Re: Undefined references to 'memcpy' when compiling Linux Kernel
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Mon, 19 Jun 2000 12:22:55 +0200
- Cc: ak at suse dot de, "H . J . Lu" <hjl at lucon dot org>, Jeff Garzik <jgarzik at mandrakesoft dot com>, Byron Stanoszek <gandalf at winds dot org>, linux-kernel at vger dot rutgers dot edu, alan at lxorguk dot ukuu dot org dot uk, gcc at gcc dot gnu dot org
- References: <20000619112714.A29583@gruyere.muc.suse.de> <NCBBLMGKIKDGJMEOMNMECEEHGOAA.john@Calva.COM>
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
On Mon, Jun 19, 2000 at 12:04:52PM +0200, John Hughes wrote:
> > Inlined memcpy can be very big in some cases, e.g. when gcc cannot
> > figure out the alignment of the target and destination pointers
>
> But in the case reported on a '386 I'd expect the inlined code to
> be tiny, smaller than the call.
Remember he was compiling with -march=i586, so unaligned rep movsl might not
be the fastest thing to do...
Jakub