Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!hp4nl!orcenl!bengsig From: bengsig@dk.oracle.com (Bjorn Engsig) Newsgroups: comp.unix.aix Subject: Re: Aligned access to c structures (how to avoid) Message-ID: <1256@dkunix9.dk.oracle.com> Date: 18 Feb 91 08:19:00 GMT References: <5053@lure.latrobe.edu.au> <1254@dkunix9.dk.oracle.com> <1991Feb15.220246.35565@shared.uucp> Reply-To: bengsig@dk.oracle.com (Bjorn Engsig) Organization: Oracle Denmark Lines: 13 Article <1991Feb15.220246.35565@shared.uucp> by johnp@shared.uucp (John Plattner) says: |If you REALLY want to bash IBM a little bit, get their COBOL (shudder shudder) | [ example ] |and try to share it with the equivalent C global structure. You will find that |the COBOL compiler does NOT boundary align, and you get nice weird results. This behaviour is not specific to IBM but to Micro Focus cobol, which is what is behind the IBM VS Cobol. I'm on thin ice here, but I actually think cobol is required to behave like that (because of data file portability); please correct me if I'm wrong. -- Bjorn Engsig, ORACLE Corporation, E-mail: bengsig@oracle.com, bengsig@oracle.nl "Stepping in others footsteps, doesn't bring you ahead"