[OSC_dev] OSC Questions regarding Protocol
Angelo Fraietta
newsgroups at smartcontroller.com.au
Thu Jan 24 15:28:24 PST 2008
Christopher Graham wrote:
> > OSC avoids the end-to-end principle by design.
> >
> > For efficiency discussions also note that OSC generally assumes
> > a 32-
> > bit architecture, thus the 4-byte alignment saves instruction
> > cycles
> > and costs no additional memory.
The no memory argument is only valid assuming the compiler uses a 4 byte
struct alignment, however, if using byte aligned structs, as one tends
to do in embedded systems, it does.
As for the machine cycles, have there been conclusive tests to show that
the instructions saved by optimising this way more than compensates for
the extra instructions used to pad the data?
--
Dr Angelo Fraietta
A.Eng, A.Mus.A, BA(Hons), Ph.D.
PO Box 859
Hamilton NSW 2303
Home Page
http://www.smartcontroller.com.au/
There are those who seek knowledge for the sake of knowledge - that is
CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
Bernard of Clairvaux (1090 - 1153)
More information about the OSC_dev
mailing list