Re: Use of unaligned load/stores by compilers

"Frank Peelo" <fpeelo@portablesolutions.com>
7 Feb 1998 13:56:29 -0500

          From comp.compilers

Related articles
[4 earlier articles]
Re: Use of unaligned load/stores by compilers scott@basis.com (1998-01-30)
Re: Use of unaligned load/stores by compilers reid@micro.ti.com (Reid Tatge) (1998-01-30)
Re: Use of unaligned load/stores by compilers tgl@netcom.com (Tom Lane) (1998-02-01)
Re: Use of unaligned load/stores by compilers albaugh@agames.com (1998-02-01)
Re: Use of unaligned load/stores by compilers hrubin@stat.purdue.edu (1998-02-01)
Re: Use of unaligned load/stores by compilers dlmoore@ix.netcom.com (David L Moore) (1998-02-01)
Re: Use of unaligned load/stores by compilers fpeelo@portablesolutions.com (Frank Peelo) (1998-02-07)
| List of all articles for this month |
From: "Frank Peelo" <fpeelo@portablesolutions.com>
Newsgroups: comp.compilers
Date: 7 Feb 1998 13:56:29 -0500
Organization: Indigo
References: 98-01-099 98-01-108 98-01-115
Keywords: architecture, history

>The Pascal "packed" data was always a potential alignment problem. I
>haven't used Pascal in ages but I recall that the semantics of
>"packed" being implementation-defined but was never used for anything
>other than character data.


[Coming from Wintel & Delphi world, pardon the intrusion:- ]
Borland's current Pascal compiler, called Delphi, also uses Packed. It
turns off alignment for arrays and record structures of any type. This
is typically used for files or other data structures, whose structure
is outside your control, and which are defined by programs on previous
processors. For example, if you are reading a file whose structure was
defined years ago by a real-mode DOS program, or passing a data
structure to a DLL with such a mindset. "Packed" lives!


FP
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.