Hi,
You're using CW for MCU V10.6 and you move your existing application on S12Z.
The best way I recommend is to create a generic project example for your device using the project wizard.
This will include all config and settings for the device.
After you could add your source code in this project.
The options and other project configuration are available on the Project Properties panel.
To access them you must select the project and via the menu Project + Properties.
The compiler options are available under C/C++ Build + Settings + S12Z Compiler

The linker is doing a smartlinking for all source files including in the project.
All un-used code will be removed.
The map file will give you all information including the removed functions.
For details I recommend you to have a look to the documentation:
\CW_MCU_v10.6\MCU\Help\PDF
MCU_S12Z_Compiler.pdf
MCU_Build_Tools_Utilities.pdf
Targeting_Microcontrollers.pdf
Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------