• 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: gcc equivalent to _emit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc equivalent to _emit


  • Subject: Re: gcc equivalent to _emit
  • From: Eric Albert <email@hidden>
  • Date: Tue, 12 Jul 2005 13:41:03 -0700

On Jul 12, 2005, at 1:32 PM, Travis Heppe wrote:

We have some SSE code that, in order to work with visual studio 6, uses some custom macros to output raw machine binary.  For example...
  #define  ADDPS    __asm _emit 0x0F  __asm _emit 0x58
It seems to me that we could get this to work on gcc if we could find a gcc equivalent to the "_emit" intrinsic.  Does anyone know if such a thing exists?

You could do this with gcc's inline asm support, but I'm not sure why you'd want to do that instead of using Intel's intrinsics.  If you use those, the same code will work with Visual Studio, gcc, and icc.  I suppose it's possible that the intrinsics aren't supported in VS 6 (since that's rather old), but if that's the case I'd suggest #ifdef'ing your macros for VS 6 only and using the intrinsics for all other compilers.

For documentation for the intrinsics, see the appendix of volume 2B of Intel's Pentium 4 documentation, which you can find at <http://developer.intel.com/design/pentium4/manuals/index_new.htm>.

Hope this helps,
Eric

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >gcc equivalent to _emit (From: Travis Heppe <email@hidden>)

  • Prev by Date: gcc equivalent to _emit
  • Next by Date: Re: mysterious serviceProvider and Mach port error
  • Previous by thread: gcc equivalent to _emit
  • Next by thread: Interface Builder brokenness
  • Index(es):
    • Date
    • Thread