🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9492

Re: structure alignment question

#9492
From: Michael Tiemann
Date: Sun, 05 Oct 1986 17:45
29 lines
1941 bytes
In article <581@rdin.UUCP>, perl@rdin.UUCP (Robert Perlberg) writes:
> If Michael says that his word-oriented string routines are faster, I
> wouldn't contradict him (after all, he has been running them).

The 68000 had no loop-mode, so they were faster. But with the advent
of superior technology, and a corresponding *lack* of followup
on my part, the great assumptions I made in 1982 no longer applied.
Whether or not they should have applied is a philosophical matter
taht has been resolved to my satisfaction (= no).

> By the way, Michael, how do your string routines handle the '\0'?

I used these routines for symbol-table management, and therefore,
never had any of these nasty cases to deal with. I have been
duly humbled, and will not feel slighted in the least if we drop
this discussion.

By the way... It was the numbers that Guy put on the net, that
convinced me I was wrong: wrong beacuse even if *one* assumption
that I make is allowed for by the compiler (by word aligning
strings, for example), there are too many other assumptions
about the hardware that must be taken into account. My moral
of the story is, let the compiler generate the code it is supposed
to, and write your special-purpose functions from there. Asking
for one more inch here or there may be smart-today-dumb-tomorrow,
as in this example.

Michael
tiemann@mcc.com
Technical Details
Message-ID: <1813@mcc-pp.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!cmcl2!yale!husc6!ut-sally!im4u!milano!mcc-pp!tiemann
References: <5500003@hcx1> <86900062@haddock> <581@rdin.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!cmcl2!yale!husc6!ut-sally!im4u!milano!mcc-pp!tiemann
From: tiemann@mcc-pp.UUCP (Michael Tiemann)
Newsgroups: net.lang.c
Subject: Re: structure alignment question
Message-ID: <1813@mcc-pp.UUCP>
Date: Sun, 5-Oct-86 13:45:59 EDT
Article-I.D.: mcc-pp.1813
Posted: Sun Oct  5 13:45:59 1986
Date-Received: Tue, 7-Oct-86 19:43:49 EDT
References: <5500003@hcx1> <86900062@haddock> <581@rdin.UUCP>
Organization: MCC, Austin, TX
Lines: 29
Summary: I *knew* I was wrong...