Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!deimos!uxc!uxc.cso.uiuc.edu!uxg.cso.uiuc.edu!uxe.cso.uiuc.edu!mcdonald From: mcdonald@uxe.cso.uiuc.edu Newsgroups: comp.unix.questions Subject: Re: bcopy Message-ID: <47800019@uxe.cso.uiuc.edu> Date: 16 Dec 88 16:24:00 GMT References: <669@auspex.UUCP> Lines: 14 Nf-ID: #R:auspex.UUCP:669:uxe.cso.uiuc.edu:47800019:000:675 Nf-From: uxe.cso.uiuc.edu!mcdonald Dec 16 10:24:00 1988 /* Written 2:11 pm Dec 14, 1988 by guy@auspex.UUCP in uxe.cso.uiuc.edu:comp.unix.questions */ >It seems to me the idea is that memcpy should be the most efficient >possible way to copy SMALL things - maybe even things like structs >containing four bytes, in which case a 32 bit integer move instruction >could be generated (if the alignemnt was right). The C compilers I know of generate inline code, not calls to "memcpy" or any other subroutine, for structure assignments; they may even generate such a move instruction if appropriate. /* End of text from uxe.cso.uiuc.edu:comp.unix.questions */ My brain was on coffee break when I said "struct". I meant "array".