1. A portable handheld device comprising: an image sensor for capturing an image; and a one-chip microcontroller having integrated therein a CPU for processing a script language and a multi-core processor for processing an image captured by the image sensor, wherein the multi-core processor includes therein multiple processing units connected in parallel by a crossbar switch, each processing unit includes an arithmetic and logic unit (ALU), and each ALU includes a first register set for accepting data from the first crossbar switch, and a second register set for loading data to the crossbar switch.