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.
 169 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 OneTimer1:  10 mins ago
 amigagr:  20 mins ago
 DiscreetFX:  24 mins ago
 matthey:  48 mins ago
 Matt3k:  58 mins ago
 NutsAboutAmiga:  1 hr 7 mins ago
 pixie:  1 hr 13 mins ago
 Karlos:  2 hrs 7 mins ago
 OlafS25:  2 hrs 11 mins ago
 AMIGASYSTEM:  2 hrs 43 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