Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!brl-adm!seismo!mcvax!jack From: jack@mcvax.UUCP Newsgroups: comp.unix.wizards Subject: Re: String Handling and run-time libraries Message-ID: <7323@boring.mcvax.cwi.nl> Date: Tue, 31-Mar-87 15:09:49 EST Article-I.D.: boring.7323 Posted: Tue Mar 31 15:09:49 1987 Date-Received: Sat, 4-Apr-87 04:49:27 EST References: <15292@amdcad.UUCP> <978@ames.UUCP> <15694@sun.uucp> <5@wb1.cs.cmu.edu> <6042@mimsy.UUCP> Reply-To: jack@boring.UUCP (Jack Jansen) Organization: AMOEBA project, CWI, Amsterdam Lines: 18 This brings to mind a couple of things I've been wondering about (but never enough to do something about myself): - Does anyone know how long the average string in C is? - At what point does the 4.2 locc/movc3 get faster than the ordinary while(*s1++ = *s2++)? - How many percent of the strings that strcpy sees will be word aligned? (I have the feeling that this percentage will be *very* high). - Is there anything useful that can be done with this knowledge, (like copying words), without first having to look for end-of-string with byte accesses? Did somebody else look into these things by chance? -- Jack Jansen, jack@cwi.nl (or jack@mcvax.uucp) The shell is my oyster.