On a 30-year forward looking basis, we appear to be fucked, though - the only 50-year old software guys I know are either self employed, or have been working at the same place for 20 years. Even "stable" employees who only switch jobs every 5 years have problem finding new jobs when they are older.
If you know of something else you'd rather be doing, and you are able to support yourself[0], and have a reasonable 10 year horizon, by all means do. But if there's nothing you are passionate about, then in all likelihood you would be just as burned and make less just trying to run an alternative method of income.
That said, I highly recommend reading Tim Ferris' "4 hour work week" book. Do not treat it as gospel, but do follow the math - it will give you a good idea (and possibly some inspiration) of where you need to be and possibly some steps on the way to get there.
[0] but, be honest with yourself - if you make less, will you still be happy enough outside of work? Many people aren't as happy once they find out what they actually have to give up. Just give the difference to charity for a couple of months to see how well you manage.