Quote:
Originally Posted by knc1
Maybe hard coding the look-up tables ...
|
A first step in that direction, get a look at what the compiler is seeing:
Code:
(armv6l:1) fft-arm-0.01 # export CFLAGS="-E"
(armv6l:1) fft-arm-0.01 # gcc $CFLAGS -o ffttest-arm.i radix4fft.c testfft.c testmain.c
Skipping past all the "include *.h" bull ...
Now it can be seen (and read) just how those thousands of trig. calls are used to init the lookup tables.
The ffttest-arm.i compiler input file is gzip'd and attached here.
Oops
The -E option doesn't do multiple *.c files into a single listing.
Ah, but the reader should get the idea, even if it has to be called 3 times.