From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,d3c6e44b0c0391cf,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-04-25 10:12:00 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!Germany.EU.net!news.netmbx.de!zelator!schei From: schei@zelator.in-berlin.de (Manfred Scheible) Subject: unaligned data and RPC Organization: Public-Access-Unix-System Date: Sun, 25 Apr 1993 14:12:01 GMT Message-ID: 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