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
23 crawler(s) on-line.
 168 guest(s) on-line.
 1 member(s) on-line.


 matthey

You are an anonymous user.
Register Now!
 matthey:  3 mins ago
 Hypex:  17 mins ago
 agami:  25 mins ago
 Matt3k:  51 mins ago
 Hammer:  2 hrs 40 mins ago
 amigasociety:  2 hrs 55 mins ago
 billt:  4 hrs 38 mins ago
 Rob:  5 hrs 39 mins ago
 amigakit:  5 hrs 49 mins ago
 DiscreetFX:  6 hrs 7 mins ago

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

PosterThread
xeron 
Re: Alignment Exception
Posted on 5-Jun-2009 10:08:32
#1 ]
Elite Member
Joined: 22-Jun-2003
Posts: 2440
From: Weston-Super-Mare, Somerset, England, UK, Europe, Earth, The Milky Way, The Universe

@MagicSN

You don't want alignment exceptions not to crash. They are an error that should be fixed.

How are the relevant structures defined? How are the relevant structures allocated?

_________________
Playstation Network ID: xeron6

 Status: Offline
Profile     Report this post  
 Top | Parent


PosterThread
BillE 
Re: Alignment Exception
Posted on 5-Jun-2009 10:15:01
#1 ]
Super Member
Joined: 14-Nov-2003
Posts: 1195
From: Northern Scotland

@MagicSN

Hi,

I had the same problem when developing Digital Universe with the latest SDK. Older SDKs worked but the latest one did not.

The answer I was given from the SDK experts is:

Quote:
OK, we finally figured out what is happening and it is anAmigaOS-specific GCC compiler bug.


Quote:
The root cause of the trouble is the pack(2) as you suspected all along. However, our GCC should have been created withthe -mstrict-align option to force strict alignments of floatingpoint types which makes the code run faster (alignment is good)at the expense of storage space.A bug has been filed against our version of GCC.


Quote:
So add the -mstrict-align optionand your code should still compile and run without this problem. This enables the optimizer to do its job without worry.


So currently add the -mstrict-align in your makefiles when compiling for OS4, in a future SDK you should be able to leave this out as it will be on by default.

Hope this helps.



Bill.

 Status: Offline
Profile     Report this post  
 Top | Parent

Replies
SubjectPosterDate
      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