• 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
Re: asm block alignment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: asm block alignment


  • Subject: Re: asm block alignment
  • From: Robert Purves <email@hidden>
  • Date: Sat, 10 Apr 2004 11:18:59 +1200

How can I enforce alignment of __asm__ volatile inline blocks, which
don't seem to be getting optimized with -falign-loops=16 and -o3?
These could be broken into two statements if necessary, so the loop
start would be the first instruction of the second statement, but I
can't come up with an __attribute__ or #pragma that the compiler will
accept.  I'm using Xcode 1.1.1 and GCC 3.3.


Use an assembler directive:
.align 4

See
<file:///Developer/Documentation/DeveloperTools/Reference/Assembler/ ASMDirectives/index.html>


Robert P.
_______________________________________________
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.


  • Prev by Date: gcc build with multibyte support?
  • Next by Date: Re: gcc build with multibyte support?
  • Previous by thread: asm block alignment
  • Next by thread: Off topic: Where do I have to file this bug to?
  • Index(es):
    • Date
    • Thread