Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Joe Mario <mario@zk3.dec.com>
To: "Allen M. Cohen" <allen.m.cohen@gsc.gte.com>
Subject: Re: Unaligned access
Date: 1998/04/01	[thread overview]
Message-ID: <35226ED5.41C6@zk3.dec.com> (raw)
In-Reply-To: 35203F9D.FCE39FD2@gsc.gte.com


Allen M. Cohen wrote:
> 
> We get many unaligned access errors from a AP when built under 
> Dec Unix 4.0-D and as:
> "cc -non_shared -Wf,_p8 -O -std -Olimit 3000"
> When we build with as just "cc -g", there are no unaligned access
> errors!  Is this a compiler bug?
  
  It's very likely a problem in your application. If you post a small
  snipit of code that shows the problem, we can help you understand
  what's causing it.  

  When you compile with "cc -g", all optimizations are disabled. 
  These include optimizations that take advantage of the C language
  rules that guarantee the alignment of various datatypes.  That's 
  probably why the unaligned errors go away with "cc -g".

> Should I use uac to ignore unaligned access errors?

  I wouldn't.  Unaligned access errors degrade performance.
  Much has been written about unaligned access errros.  It's usually
  a matter of taking the pc reported by the unaligned access error
  and looking at the source code at or around that pc to see what's
  causing it.

  Below are pointers to two web pages which might be of help.
 
See
http://www.partner.digital.com/www-swdev/pages/Home/TECH/techsupport.html

  Choose "Frequently Asked Questions" then "DIGITAL UNIX"

or 

http://www.partner.digital.com/www-swdev/pages/Home/TECH/faqs/dunix/unalign.html

BTW, I see you're compiling with "-Wf,_p8" and "-Olimit 300".  Neither
switch is recognized by DECC.  As of UNIX V4.0, the -Olimit switch is
only recognized by -oldc.  I've never seen the _p8 switch. They're not
doing any harm, nor are they doing any good.

Joe Mario



  reply	other threads:[~1998-04-01  5:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-31  5:00 Unaligned access Allen M. Cohen
1998-04-01  5:00 ` Joe Mario [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-06  6:27 Emmanuel STAPF [ISE]
2000-03-31  5:00 Kraisit Vittinanon
2000-04-04  4:00 ` Oisin McGuinness
1996-11-15  5:00 unaligned access gautam
1996-11-16  5:00 ` Dirk Grunwald
1996-11-20  5:00 ` Jeff Denham
1996-11-22  5:00   ` Curt Smith
1996-11-21  5:00 ` Anthony Berent
1995-05-20  4:00 Adrian Wenden
1995-05-22  4:00 ` Eric Osborne
1995-05-24  4:00 ` Vepa V Sirish
1995-05-25  4:00 ` John Wood
1994-02-05 21:21 Stefan Monnier
1994-02-06  9:39 ` Jarkko Hietaniemi
1993-11-30 22:25 Roland Schemers
1993-11-30 23:25 ` Matt Thomas
1993-12-01 12:06 ` Burkhard Neidecker-Lutz
1993-12-07  1:27 ` Jim Hurst
1993-02-23 15:55 Unaligned access Byron Jennings
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