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


 agami

You are an anonymous user.
Register Now!
 agami:  4 mins ago
 amigasociety:  9 mins ago
 matthey:  55 mins ago
 RobertB:  1 hr 12 mins ago
 Rob:  1 hr 36 mins ago
 number6:  2 hrs 42 mins ago
 Karlos:  3 hrs 17 mins ago
 kolla:  3 hrs 46 mins ago
 OneTimer1:  4 hrs 14 mins ago
 OlafS25:  4 hrs 48 mins ago

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

Goto page ( Previous Page 1 | 2 )
PosterThread
MagicSN 
Re: Alignment Exception
Posted on 8-Jun-2009 10:48:19
#21 ]
Hyperion
Joined: 10-Mar-2003
Posts: 669
From: Unknown

I checked into the details, and I actually doubt that -mstrict-align can fix this. In Mame there
is a "device structure". This structure starts with the name of the device, and immediately after a internal_config structure follows (which among others contains float's).

The problem is: In two instances (two different devices) the alignment of the float's in the internal_config structure might have to be DIFFERENT depending how long the name of the device is! I am not sure how -mstrict-align works, but I doubt it can give different alignment to two instances of the same structure... and that it is clever enough to notice that the void * containing a internal_config * needs to be aligned that way I doubt...

I will try this evening if I can include a workaround (including padding BEFORE the internal_config structure, after the name), but as this goes pretty far into the internals of Mame it is - tricky to do. We will see if it works on the Sam then

 Status: Offline
Profile     Report this post  
Goto page ( Previous Page 1 | 2 )

[ 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