• 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: Compiling simple C code filters to use AltiVec
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling simple C code filters to use AltiVec


  • Subject: Re: Compiling simple C code filters to use AltiVec
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 14 Dec 2005 12:35:00 -0800


On Dec 14, 2005, at 12:27 PM, Robin Lake wrote:

I have a number of relatively simple C code "filters" dating back to the 1970's.  They compile and run fine using "cc" in Terminal under OS X.  One, in particular, uses a lot of math and I would like to recompile it to use the AltiVec processor in my G5.


The tutorials for XCode start off assuming one is building a project, which is a step above what I am used to doing.


Is there a simple, straightforward way to compile my filter and assure it will use the AltiVec?


See http://developer.apple.com/documentation/DeveloperTools/gcc-4.0.1/gcc/PowerPC-AltiVec-Built_002din-Functions.html

(Found by the Google search "site:apple.com gcc altivec")

Generally, you #include <altivec.h> and set -maltivec  and -mabi=altivec in your command line.

Chris
 _______________________________________________
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: 
 >Compiling simple C code filters to use AltiVec (From: Robin Lake <email@hidden>)

  • Prev by Date: Re: GCC 4 and iostream.h
  • Next by Date: Re: Compiling simple C code filters to use AltiVec
  • Previous by thread: Compiling simple C code filters to use AltiVec
  • Next by thread: Re: Compiling simple C code filters to use AltiVec
  • Index(es):
    • Date
    • Thread