[comp.sys.atari.st] 68881 Co-processors

alex@athertn.Atherton.COM (Alex Leavens) (01/16/90)

One note about 68881 co-processors:
	You should re-write your code to take specific advantage of the
device if it is, in fact, there.  Otherwise, the speed inprovement that
you recieve is not very good.  For example, a fractal tree drawing program
that I wrote does very intensive math calculations:
	strictly in C, it takes about 20 minutes to draw a 'tree'
	in C, but using the 68881 math libraries, takes 13 minutes 
	   (better, but not really all that good)
	re-coding the algorithm to directly access the 68881,
	(ie, load all the registers and do the calculations there),
	it takes under 2 minutes.

Another example is a fast fourier transform program:
	to analyze 64 data points, in C:  appx. 32 seconds
	using the 68881 directly (via
	  C macros):                      .38 seconds (less than
4 tenths of a second).

How you use the 68881 is very important to the performance benefits
you get from it!



-- 
|-------------------------------------------------------------------------|
|--alex | alex@atherton.com |  Caution!  Falling Opinions, next 6 miles   |
|        Now who are you gonna believe--me, or your own lyin' eyes?       |
|-------------------------------------------------------------------------|