SLAU132Y September 2004 – June 2021
These steps illustrate the creation and use of feedback directed optimization.
cl430 --opt_level=2 --gen_profile_info foo.c --run_linker --output_file=foo.out
--library=lnk.cmd --library=rts430.lib
The execution of the application creates a PDAT file named pprofout.pdat in the current (host) directory. The application can be run on target hardware connected to a host machine.
After running the application with multiple data-sets, run pdd430 on the PDAT files to create a profile information (PRF) file to be used with --use_profile_info.
pdd430 -e foo.out -o pprofout.prf pprofout.pdat
cl430 --opt_level=2 --use_profile_info=pprofout.prf foo.c --run_linker
--output_file=foo.out --library=lnk.cmd --library=rts430.lib