public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: n0ano@indstorage.com
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] Unaligned access in ia64
Date: Mon, 12 Nov 2001 16:38:03 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590698805473@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805472@msgid-missing>

D'Laila-

I should first point out that those were warnings, not errors.  Your
program should have executed properly, all be it a lot slower that if
it didn't do the unaligned accesses.

The simple answer is that all accesses should be to natively aligned
boundaries.  That means 2-byte shorts should be on 2-byte boundaries,
4-byte ints should be on 4-byte boundaries and so on.

Also, you should note that you are probably paying a performance
penality on your Intelx86 machine also, you just don't know about
it because the CPU doesn't even tell you when you make an unaligned
access.

On Mon, Nov 12, 2001 at 08:24:38AM -0800, Pereira, D LailaX E wrote:
> Hi 
> I have an application running fine on the Intelx86 machines. When I run the
> same on itanium machine ( linux OS) , I get the following  errors:
> stress.udp(16868):unaligned access  to 0x4000000000003541,
> ip=0x400000000001cfe0
> stress.udp(16868):unaligned access  to 0x4000000000003541,
> ip=0x400000000001c551
> 
> What could be the possible causes for this? Can anyone please point out?
> what are the general cautions to be taken while porting applications to
> itanium? for eg any pointer conversions , int conversions etc 
> 
> thanks
> d'laila 
> 
> 
> _______________________________________________
> Linux-IA64 mailing list
> Linux-IA64@linuxia64.org
> http://lists.linuxia64.org/lists/listinfo/linux-ia64

-- 
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
n0ano@indstorage.com
Ph: 303/652-0870x117


  reply	other threads:[~2001-11-12 16:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-12 16:24 [Linux-ia64] Unaligned access in ia64 Pereira, D LailaX E
2001-11-12 16:38 ` n0ano [this message]
2001-11-12 16:56 ` Pereira, D LailaX E
2001-11-12 17:16 ` n0ano
2001-11-12 23:50 ` Dan Pop
2001-11-13  0:00 ` Dan Pop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590698805473@msgid-missing \
    --to=n0ano@indstorage.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox