Re: Use of unaligned load/stores by compilers

scott@basis.com (Scott Amspoker)
30 Jan 1998 00:25:59 -0500

          From comp.compilers

Related articles
Use of unaligned load/stores by compilers sazal@aol.com (1998-01-24)
Re: Use of unaligned load/stores by compilers falan@inreach.com (Alan Fargusson) (1998-01-25)
Re: Use of unaligned load/stores by compilers corbett@lupa.Eng.Sun.COM (1998-01-25)
Re: Use of unaligned load/stores by compilers hrubin@stat.purdue.edu (1998-01-26)
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: scott@basis.com (Scott Amspoker)
Newsgroups: comp.compilers
Date: 30 Jan 1998 00:25:59 -0500
Organization: Basis International
References: 98-01-099 98-01-108
Keywords: architecture

corbett@lupa.Eng.Sun.COM (Robert Corbett) wrote:


>>Fortran lets you use equivalence statements to misalign double precision
>>floats, other than that I don't know of any languages where misaligned
>>data will happen without extraordinary programmer effort. -John]
>
>There are a few languages that allow users to specify that data is
>unaligned. COBOL, PL/I and Ada come to mind.


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.


Scott Amspoker
scott@basis.com
http://www.rt66.com/sda
[I believe that packed reflected a peculiarity of the CDC6600 on which
Pascal was initially implemented. The machine was word oriented, and
there were instructions that packed and unpacked characters into words,
so the only thing that ever happened to packed data was that it got
unpacked before subsequent processing -John]


--


Post a followup to this message

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