Compression and decompression the FreeRTOS

Hi all, I intend to compress FreeRTOS binary image first and download it to flash . When board booting ,bootloader will decompress and execute itself. Just like Linux kernel , it using gzip to compress kernel and using u-boot to decompress it. I’am using ST’s IAP (In-application-programming) as bootloader , and my board is ST910-EVAL . Now I am survying the LZMA . Does anyone have this experience ?