Hi Abdullash,
The 1 KB code includes interrupt vector table, handler, startup code, user source code, flash configuration code.
Because flash configuration field starts from 0x00400, the "gap" above 0x00400 is filled with 0xFF, that causes the total "text" size over 1k. If we uncheck "Enable automatic placement of Flash Configuration field in image", you will see the code size down.

attached are two hex file generated with the same project.
MKL03Z8xxx4_Project_INCLUDE_FLASHCFG.hex - with "Enable automatic placement of Flash Configuration field in image" checked.
MKL03Z8xxx4_Project_NO_FLASHCFG - with "Enable automatic placement of Flash Configuration field in image" unchecked.
you will see the difference.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------