Re: gcc equivalent to _emit
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.
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