AltiVec Testing (CW8.3, Mach-O)

AltiVec Testing (CW8.3, Mach-O)

Post by Barbara Fr » Fri, 19 Dec 2003 01:43:33


Hi fellow programmers!

I am trying to test processing times in a Classic app compared to Mach-O
app with AltiVec to speed up Fourier Transform processing. I am reading
vDSP_Library.pdf from Apple for how to implement use of AltiVec. My
problem is that when I port the code from my carbon app, my #include
<Timer.h> gets flagged, the file 'Timer.h' cannot be opened. I need
this for calling the function Microseconds() in my timing process. Is
this just a path problem? When I check "Timer.h" it says it is
available for OS X.

Thanks,
Barbara
 
 
 

AltiVec Testing (CW8.3, Mach-O)

Post by Paul Russe » Fri, 19 Dec 2003 02:21:30


I don't know about Microseconds(), but I just use UpTime() for this sort
of thing in Mach-O:

#if __MACH__
#include <Carbon/Carbon.h>
#else
#include <Types.h>
#include <DriverServices.h>
#endif

AbsoluteTime t = UpTime();

Paul

 
 
 

AltiVec Testing (CW8.3, Mach-O)

Post by MW Ro » Fri, 19 Dec 2003 04:57:43

In article < XXXX@XXXXX.COM >,



Try adding the CoreServices Framework to your project.

Ron

--
Metrowerks wishes you and yours
Seasons Greetings and Happy Holidays

Get Geekware and Software http://www.yqcomputer.com/
Shop our online store and get free shipping until Dec 31

Ron Liechty - XXXX@XXXXX.COM - http://www.yqcomputer.com/
 
 
 

AltiVec Testing (CW8.3, Mach-O)

Post by Miro Juris » Sat, 20 Dec 2003 14:39:17

In article < XXXX@XXXXX.COM >,



On Mach-O, you should include CoreServices/CoreServices.h and add
CoreServices.framework to your project.

hth

meeroh

--
If this message helped you, consider buying an item
from my wish list: < http://www.yqcomputer.com/ ;
 
 
 

AltiVec Testing (CW8.3, Mach-O)

Post by Barbara Fr » Sun, 11 Jan 2004 02:14:59

In article < XXXX@XXXXX.COM >,




OK, I'm back from the Holidays and thanks for the help. I did the
above, and now get new and different errors.

I also added CarbonCore and OSServices frameworks because this seemed to
be necessary, but now I get the following:

Error : number is out of range
(included from:
CarbonCore.h:182
CoreServices.h:21
Main.c:10)
Folders.h line 199 kTextEncodingsFolderType = 'ex', /* encoding
tables */

and a lot of other very similar out of range errors!

What am I missing here??
I value input from the Newsgroup!
 
 
 

AltiVec Testing (CW8.3, Mach-O)

Post by MW Ro » Sun, 11 Jan 2004 05:09:15

In article < XXXX@XXXXX.COM >,



Make sure ANSI Strict isn't selected you will get this error if it is.

Ron

--

Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - XXXX@XXXXX.COM - < http://www.yqcomputer.com/ >
 
 
 

AltiVec Testing (CW8.3, Mach-O)

Post by Sean McBri » Sun, 11 Jan 2004 06:39:16

In article < XXXX@XXXXX.COM >,



Turn off 'ANSI strict' in the project settings. Some Apple headers are
not compatible with this CW compiler option. Or do this:

#pragma ANSI_strict off
#include <StupidAppleHeader.h>
#pragma ANSI_strict reset