One aspect is to reduce the size of compression dictionary data used in a compression process. According to one mode, compression dictionary data is generated by causing a computer, which performs the compression process, to store character data to be compressed and code length of a compressed code assigned to the character data in respective storing places specified by a plurality of types of predetermined-length bit strings including the compressed code within a storage area where the storing places are specified by the predetermined-length bit strings.