From: schei@zelator.in-berlin.de (Manfred Scheible)
Subject: unaligned data and RPC
Date: Sun, 25 Apr 1993 14:12:01 GMT [thread overview]
Message-ID: <P5VCBTQI@zelator.in-berlin.de> (raw)
Is there support for unaligned data with DCE-RPC ?
I would like to use RPC for a COBOL application. An the
client side COBOL calls C with makes a RPC, While a pointer
to COBOL structures is given as parameter from COBOL to
and then to sthe stub. On server side roles are reversed.
Most COBOL applications today are working with unaligned data.
In the past this was not a great disadvantage, because unaligned
data on CISC was near as fast as aligned data. Although there
is support for alignment in COBOL-85 with the SYNCHRONIZED clause
it is not always easy to switch an old application.
For example the equivalent in COBOL for the following structure
has a size of 5 bytes and s.l would be is unaligned.
struct {
char ch;
long l;
} s;
The C compilers on mostly RISC computers align s.l on 4-byte boundaries
and the structure size is 8 byte. Therefore the item s.l can not be
accessed in C. This would be no problem, because only the address
of structures is passed throu C code between COBOL application
and stubs.
Are such structures supported/expressable with IDL/NIDL on modern
RISC implementations of RPC ? Ala #prgma alined ?
Thanks for your hints.
--
Manfred Scheible
schei@zelator.in-berlin.de
reply other threads:[~1993-04-25 14:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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