Click Here
home features news forums classifieds faqs links search
5687 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
22 crawler(s) on-line.
 16 guest(s) on-line.
 2 member(s) on-line.


 MichaelMerkel,  Massi

You are an anonymous user.
Register Now!
 Massi:  1 secs ago
 MichaelMerkel:  1 min ago
 gryfon:  9 mins ago
 Fl@sh:  25 mins ago
 amisteph:  30 mins ago
 Derfs:  40 mins ago
 vox:  41 mins ago
 Rob:  44 mins ago
 Kronos:  59 mins ago
 g0blin:  1 hr 6 mins ago

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

PosterThread
xeron 
Re: Alignment Exception
Posted on 5-Jun-2009 9: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 9:15:01
#1 ]
Super Member
Joined: 14-Nov-2003
Posts: 1168
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 9:16:45
          Re: Alignment ExceptionBillE5-Jun-2009 9:20:05
          Re: Alignment ExceptionMagicSN5-Jun-2009 9:23:05
              Re: Alignment ExceptionChain-Q5-Jun-2009 10:33:35
                  Re: Alignment ExceptionMagicSN5-Jun-2009 10:40:00
                  Re: Alignment ExceptionAmiDog5-Jun-2009 11:55:42
                      Re: Alignment Exceptionxeron5-Jun-2009 12:15:05
                          Re: Alignment Exceptionafxgroup5-Jun-2009 12:19:16
                              Re: Alignment ExceptionMrodfr5-Jun-2009 13:48:32
      Re: Alignment ExceptionMagicSN5-Jun-2009 9:21:16
      Re: Alignment ExceptionChrisH5-Jun-2009 16:58:08
          Re: Alignment ExceptionMagicSN6-Jun-2009 13:51:52
              Re: Alignment ExceptionMagicSN7-Jun-2009 11:55:33
                  Re: Alignment ExceptionMagicSN8-Jun-2009 9: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