
SophiaCompress(BREW) EARTH compresses a BREW mod file and generates a "Bootloader" that will load and execute the BREW mod file compressed.
There are two kinds of compression method: Direct Compress and Separate Compress
* Above SophiaCompress(BREW) EARTH 5.0, the LZMA algorithm has been supported.
Direct Compress

- Startup SophiaCompress(BREW), select the mod file to be compressed and execute.
- The file will be compressed. The bootloader(APPL.mod) and the compressed application are generated in the same module file (APPL.mod in this example).
- The APPL.mod file containing the bootloader and the compressed application are saved into a data folder of the mobile phone.
- The bootloader and the compressed application are loaded into heap memory.
- The bootloader expands the compressed application and executes it.
- Since the compressed application and the bootloader are both loaded into data folder, it uses more heap memory than the Separate Compress method.
Separate Compress

- Startup SophiaCompress(BREW), select the mod file to be compressed and execute.
- The file will be compressed. A bootloader(APPL.mod) and a compressed Application(APPL.scb) are generated separately.
- The bootloader and the compressed application are saved into a data folder of mobile phone.
- The bootloader is loaded into heap memory.
- The compressed application is expanded into heap memory and executed by the bootloader.
- Since the compressed application is saved into a data folder, the use less heap memory the is required compared to Direct Compress method.








