Sun XDR aligns each primitive value on a four byte boundary, whereas CORBA CDR aligns a
primitive value of size n on an n-byte boundary. Discuss the trade-offs in choosing the sizes
occupied by primitive values.

What will be an ideal response?


Marshalling is simpler when the data matches the alignment boundaries of the computers involved. Four
bytes is large enough to support most architectures efficiently, but some space is wasted by smaller primitive
values. The hybrid method of CDR is more complex to implement, but saves some space in the marshalled
form. Although the example in Figure 4.8. shows that space is wasted at the end of each string because the
following long is aligned on a 4- byte boundary.

Computer Science & Information Technology

You might also like to view...

To affect a symbol instance with the Symbolism tools, what else needs to be

selected? What will be an ideal response?

Computer Science & Information Technology

Android is an open source operating system for network servers.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Another name for a literal is a constant.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Mobile device software is closed source and vendor-specific

Indicate whether the statement is true or false

Computer Science & Information Technology