From: curts@compgen.com (Curt Smith)
Subject: AXP advice on code for byte parsing??
Date: 1996/02/07 [thread overview]
Message-ID: <4f8s6v$91v@nntp.atlanta.com> (raw)
Hi,
We need to optimize the most performance out of a function that
does mostly byte addressing and moving / converting data types.
No consideration for CPU specific issues where given to this function
till; bad-boy-function VS picky-as-heck-RISC-CPU face off had the CPU
on the winning side.
We are now fully aware of un-aligned int/long issues but surely there
are more tricks to performing the following type of operations:
General todo;
- Convert a 400 byte record of structure ABC to 500 byte record of
structure DEF.
- Structures ABC and DEF, have fields of ASCII, BCD, binary and oddly
encoded date values on all sorts of address boundaries.
Question mostly pertains to:
- ?? Tricks to picking up a 5 byte BCD field from struct offset = 101,
in the MOST CPU efficient way possible?? I.E. picking up 8 bytes at
at time into an auto long variable spanning the field in question??
- ?? The bad-boy-var is now in an auto var, char buf, or if int, in and
int variable. I suppose there's no AXP/RISC tricks at this point...
- ?? Am I correct to assume that the most efficient way to write a auto
variable, int, to a non-aligned struct address is via memcpy()?
Thanks!!!
--
Curt Smith
curts@compgen.com
--
Curt Smith
curts@compgen.com
next reply other threads:[~1996-02-07 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-02-07 5:00 Curt Smith [this message]
1996-02-11 5:00 ` AXP advice on code for byte parsing?? Peter Mayne
1996-02-13 5:00 ` Curt Smith
1996-02-15 5:00 ` Joe Mario
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox