A resist composition comprising a base polymer and an acid generator containing a sulfonium salt which is structured such that an iodized or brominated hydrocarbyl group (exclusive of iodized or brominated aromatic ring) is bonded to a benzene ring via an ester bond-containing group offers a high sensitivity, minimal LWR and improved CDU independent of whether it is of positive or negative tone.