Homework exercises #3

Code compilation and Makefile

Download FFT_serial.tgz from https://linuxcourse.rutgers.edu/summer2023/html/HW/FFT_serial.tgz

  • Untar the archive.

  • Compile the source code into binary file fft.x

  • Create static library libcfft.a from cffti.c, ccopy.c, cfft2.c, and step.c files.

  • Develop Makefile that include targets for fft.x, and library libcfft.a

Command grep and regular expressions

How many times is function cfft2 called in file fft_serial.c?

Python script

Develop a python script that accomplishes the same task as command grep above.