• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
1 byte struct alignment in gcc?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

1 byte struct alignment in gcc?


  • Subject: 1 byte struct alignment in gcc?
  • From: email@hidden (Satoshi Yamamoto)
  • Date: Tue, 13 Jul 2004 18:19:45 -0700

We have structs that needs to be aligned to 1 byte. In codewarrior, we were
using "#pragma options align=packed". Is there an equivalent pragma in gcc?
It seems like only "mac68k" and "power" are supported.

I've also found that you can use "__attribute__ ((packed))", but we are
hoping not to add this to every field in all the structs we got. Or is this
the only way to accomplish this in gcc?

Thanks in advance!
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: 1 byte struct alignment in gcc?
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: Xcode 2.0 and 64-bit support
  • Next by Date: Re: 1 byte struct alignment in gcc?
  • Previous by thread: XCode header searching
  • Next by thread: Re: 1 byte struct alignment in gcc?
  • Index(es):
    • Date
    • Thread