Can you only use core, or if not, which other books? In core only, it's still a pretty subpar class, but might be ok because there's basically nothing else to do with archery. If you have other options, don't even consider it unless you like the flavor or some other reason besides optimization.
EDIT: The best core archer is probably a rogue/wizard/arcane trickster, though until you start taking levels in the prestige class, life is likely difficult. Gets almost as much sneak attack as a Rogue 20, about 2/3 casting progression over the entire build, and the tools (spells) to help obtain ranged sneak attack after the first round (grease, blink, greater invisibility, etc...)