Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
13 crawler(s) on-line.
 127 guest(s) on-line.
 1 member(s) on-line.


 Rob

You are an anonymous user.
Register Now!
 Rob:  1 min ago
 kolla:  6 mins ago
 amigakit:  18 mins ago
 Tuxedo:  26 mins ago
 zipper:  31 mins ago
 OlafS25:  33 mins ago
 OneTimer1:  35 mins ago
 matthey:  55 mins ago
 RobertB:  2 hrs 12 mins ago
 pavlor:  2 hrs 45 mins ago

/  Forum Index
   /  Amiga Development
      /  Alignment Exception
Register To Post

PosterThread
MagicSN 
Alignment Exception
Posted on 5-Jun-2009 8:23:21
#1 ]
Hyperion
Joined: 10-Mar-2003
Posts: 668
From: Unknown

In a program developed by me my tester (currently I have no working Amiga) reported an alignment exception in a totally innocent position. Looking at the crashlog it seems it did not like the alignment of a data structure. Now if I remember correctly the Sam (he tested on a Sam) requires data structures 32 Bit aligned.

Now I *think* to remember there was some ENV Variable to set if an alignment exception should cause a crash or not (or was this with WarpOS? Maybe I am confusing things...). Can somebody clear this up for me?

I am also trying right now to compile my application with -mstrict-align, maybe this would help?

Any comments welcome.

This is what caused the alignment exception:

if (config->xoffset != 0)
{
settings.xoffset = config->xoffset;
}

settings is a local variable, config is a pointer variable pointing to something inside a structure inside a structure inside a pointer parameter.

It's just been some years since my last Amiga developments, some years before I'd probably have known my own answers

MagicSN

 Status: Offline
Profile     Report this post  

Replies
SubjectPosterDate
      Re: Alignment ExceptionNutsAboutAmiga5-Jun-2009 9:07:15
          Re: Alignment ExceptionMagicSN5-Jun-2009 9:11:41
      Re: Alignment Exceptionxeron5-Jun-2009 9:39:59
          Re: Alignment ExceptionMagicSN5-Jun-2009 10:06:32
              Re: Alignment Exceptionxeron5-Jun-2009 10:08:32
              Re: Alignment ExceptionBillE5-Jun-2009 10:15:01
                  Re: Alignment Exceptionxeron5-Jun-2009 10:16:45
                      Re: Alignment ExceptionBillE5-Jun-2009 10:20:05
                      Re: Alignment ExceptionMagicSN5-Jun-2009 10:23:05
                          Re: Alignment ExceptionChain-Q5-Jun-2009 11:33:35
                              Re: Alignment ExceptionMagicSN5-Jun-2009 11:40:00
                              Re: Alignment ExceptionAmiDog5-Jun-2009 12:55:42
                                  Re: Alignment Exceptionxeron5-Jun-2009 13:15:05
                                      Re: Alignment Exceptionafxgroup5-Jun-2009 13:19:16
                                          Re: Alignment ExceptionMrodfr5-Jun-2009 14:48:32
                  Re: Alignment ExceptionMagicSN5-Jun-2009 10:21:16
                  Re: Alignment ExceptionChrisH5-Jun-2009 17:58:08
                      Re: Alignment ExceptionMagicSN6-Jun-2009 14:51:52
                          Re: Alignment ExceptionMagicSN7-Jun-2009 12:55:33
                              Re: Alignment ExceptionMagicSN8-Jun-2009 10:48:19



[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle