So yea, I buy a Lawful Evil
Candle of Invocation for 8400gp, wish for an
Efreet, which is forced to obey me for the
Gate's CL, or 17 rounds. I spend 3 of those rounds making it grant me
wishes, one of which is used to make another Candle of Invocation and the other two Wishes either for more Candles, spell effects or whatever else. Eventually one could summon an army of
Solars, or whatever and kill it.
Alternatively, find one
Allip and
command it. It's incorporeal, so the Tarrasque cannot touch it, and peculiarly it's not immune to Wisdom drain. Also, it has a crappy Touch AC, so an allip will dispatch it in minutes. This means, a level 3 Wizard could deal with the Tarrasque (3 days is plenty, and a Gray Elf Wizard can make it a DC 18 or so, with many tries so the Command is going to work, and 3 days is plenty - 1d4 points of Wisdom damage is negligible). This relies on an Allip existing in this world though. Otherwise it will take far more resources to generate the Allip, thus pushing it more expensive than Candle of Invocation-kill. Else this is favourable as it's only 3000XP and nothing else.