Personally I am a big corp dev and making >600k/year on track to retire at 40.
But you do not get there by trying for the salary. Try to be good, no exceptional, at what you do. Become valuable and you will be paid. But your motivation should be your craft and not money.
I believe the same applies for startup founders too. As a dev in startup land you are at a disadvantage though - the fail or rise of the company is much more about sales and biz than tech.
I think as a dev big corps are the way better bet. Not much to loose, but possibly high payout. Startups very rarely pay out for devs.