aligned on an even word boundary. This alignment can be done using the linker
command file with the key word, align 4, see the linker command file. We use the
DATA_SECTION pragma directive to tell the linker where to place the output
Go through the following steps for Experiment 5C:
1. Copy the assembly program firs2macs.asm, the C function epx5c.c, and
the linker command file exp5.cmd from the software package to the working
directory. The dual-MAC FIR routine is defined as:
unsigned int fir2macs(int *in, unsigned int M, int *h, unsigned int L,
int *out, int *x, unsigned int index);
where all the arguments are the same as Experiment 5A.
2. Create the project exp5c and add files fir2macs.asm, epx5c.c, and exp5.cmd
into the project.
3. Build and run the project. Compare the results with the results from the two
4. Profile the filter performance and record the memory usage. How many instruction
cycles were reduced by using the dual-MAC implementation? Why is the dual-MAC
implementation more efficient than the symmetric FIR implementation?
 N. Ahmed and T. Natarajan, Discrete-Time Signals and Systems, Englewood Cliffs, NJ: Prentice-
 V. K. Ingle and J. G. Proakis, Digital Signal Processing Using MATLAB V.4, Boston: PWS
 Signal Processing Toolbox for Use with MATLAB, Math Works, 1994.
 A. V. Oppenheim and R. W. Schafer, Discrete-Time Signal Processing, Englewood Cliffs, NJ:
 S. J. Orfanidis, Introduction to Signal Processing, Englewood Cliffs, NJ: Prentice-Hall, 1996.
 J. G. Proakis and D. G. Manolakis, Digital Signal Processing ± Principles, Algorithms, and
Applications, 3rd Ed., Englewood Cliffs, NJ: Prentice-Hall, 1996.
 S. K. Mitra, Digital Signal Processing: A Computer-Based Approach, 2nd Ed., New York, NY:
McGraw Hill, 1998.
 D. Grover and J. R. Deller, Digital Signal Processing and the Microcontroller, Englewood Cliffs,
NJ: Prentice-Hall, 1999.
 F. Taylor and J. Mellott, Hands-On Digital Signal Processing, New York, NY: McGraw Hill,
 S. D. Stearns and D. R. Hush, Digital Signal Analysis, 2nd Ed., Englewood Cliffs, NJ: Prentice-
 Texas Instruments, Inc., TMS320C55x Optimizing C Compiler User's Guide, Literature no.