Portability of passing/operating on structures...

Karl Heuer karl at haddock.ima.isc.com
Thu Oct 20 12:08:02 AEST 1988


In article <2685 at hound.UUCP> rkl1 at hound.UUCP (K.LAUX) writes:
>[re struct copy]
>	*Why* would you want to do this anyway?  It is far easier to use
>pointers (and much more efficient).

Whether it's easier depends on what you're trying to do.  Whether it's more
efficient depends on what you're doing and on how good the compiler is.
(Quality implementations will return a small struct in the registers, as is
already customary for builtin types.)

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list