The invention provides an instruction
compression method and device, a processor core and
computer equipment, and relates to the technical field of
data compression. The instruction
compression method comprises the steps of obtaining a plurality of micro-operations corresponding to at least one instruction in a
current period; according to the
execution unit type corresponding to each of the plurality of microoperations and a plurality of preset compression types, determining a plurality of compression
modes for the plurality of microoperations; according to the compression lengths of the various compression
modes, selecting a target compression mode from the various compression
modes; and compressing the plurality of microoperations into the reordering buffer area by adopting a target compression mode. According to the method, multiple compression modes with the
high coverage rate are determined based on
execution unit types corresponding to the microoperations and multiple preset compression types, then an optimal target compression mode is determined from the multiple compression modes based on the compression length, and the multiple microoperations are compressed into a reordering buffer area in the target compression mode. In this way, more microoperations can be accommodated for the same reordering buffer area resources, the
effective capacity of the reordering buffer area is improved, and then the renaming speed is increased.