Please check the Project settings and ensure that you selected ANSI C start up, think you are currently using minimal startup code settings.
If you are application requires less than 2000 bytes of heap then you can open the Freescale\CW for HC12 V4.5\lib\hc12c\hc12_lib.mcp project and select the type of .lib u need to compile. Open the stdlib.c and from includes open the libdefs.h header file and change the #define LIBDEF_HEAPSIZE 2000 to required size in order to save the RAM.Compile the lib project and include the new .lib file for your porject.
Have a nice time.
Please feel free to revert for any further clarification in this regard
With Best Regards
Padmakumar