Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!nike!ll-xn!adelie!axiom!linus!philabs!rdin!perl From: perl@rdin.UUCP (Robert Perlberg) Newsgroups: net.lang.c Subject: Re: structure alignment question Message-ID: <581@rdin.UUCP> Date: Thu, 2-Oct-86 15:02:07 EDT Article-I.D.: rdin.581 Posted: Thu Oct 2 15:02:07 1986 Date-Received: Mon, 6-Oct-86 18:21:34 EDT References: <5500003@hcx1> <86900062@haddock> Organization: Resource Dynamics Inc., New York Lines: 23 If Michael says that his word-oriented string routines are faster, I wouldn't contradict him (after all, he has been running them). However, I don't see why it is necessary to have a special set of functions to handle tha word-aligned case. The standard functions could test the alignment of their arguments and handle them appropriatly. This would have many advantages: The optimization would be realized on programs that weren't written to try to use it. Programs that were written with the optimization in mind would run on all machines even if they didn't or couldn't support the optimization. Compilers that put strings on word boundaries would enhance the frequency with which the optimization is used without the programmer having to communicate anything to the string routines. By the way, Michael, how do your string routines handle the '\0'? Robert Perlberg Resource Dynamics Inc. New York {philabs|delftcc}!rdin!perl