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 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...

Talia notices figures in a report with no obvious source. This is an example of a violation of the law of ____

a. Conservation of information b. Utilization of information c. Logical data flow d. Data integrity

Computer Science & Information Technology

To delete a label from a form, click the label, then press the ____ key on the keyboard.

A. Cut B. Delete C. Remove D. Purge

Computer Science & Information Technology

The grouping in a crosstab query comes from the definitions of row and column headings

Indicate whether the statement is true or false

Computer Science & Information Technology

The ________ is the box where the rulers meet, in the upper left corner of a form in Design view

Fill in the blank(s) with correct word

Computer Science & Information Technology