1. A method comprising: traversing a binary image in segments, each segment having a corresponding physical address and a predefined size; compressing a plurality of uncompressed segments of the binary image having code to establish a plurality of compressed segments, each of the compressed segments remaining at the uncompressed segment's corresponding physical address, wherein each compressed segment comprises a contiguous compressed code and available memory section; and filling a plurality of the available memory sections of the plurality of compressed segments with constant data from the binary image.