In a processor, an operating unit executes an instruction within an
instruction set, and a second operating unit executes other custom
instructions. The second operating unit consists of a plurality of AND
circuits, OR circuits, adders, selectors, and multiplexers. The
information about which circuit should be combined with which circuit
when the instruction is input is held in advance as structure information
in a configuration memory. One piece of structure information corresponds
to one custom instruction. The second operating unit in an optimum
circuit structure determined based on this structure information executes
the instruction. With this arrangement, it is possible to increase the
processing speed than when the operating unit executes the processing.