A resist composition contains a polymer-bound acid generator, specifically a polymer comprising recurring units derived from a sulfonium or iodonium salt having a polymerizable unsaturated bond and containing iodine in the linker between the polymerizable unsaturated bond and a fluorosulfonic acid. The resist composition offers a high sensitivity and improved CDU independent of whether it is of positive or negative tone.