this depends on how many floating computation you used in your project.
for example, if use “32bit/IEEE32 for the HC12"

In CW for hcs12x, long long type is 32bit by default.
if you use
| volatile long long a=123,b=123, c; |
c=a*b; |
c=a*b takes 60+ bytes code.
if use:
| volatile float a=123,b=123, c; |
c=a*b;
here c=a*b takes 260+ bytes code.
if use:
volatile int a=1234,b=1234, c;
c=a+b;
here, c=a+b takes 13 bytes code.
can this help you?
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------