Albeit Sun Studio 12 doesn't support Solaris 8, while Sun Studio 11 does, you would probably want to use 12's IDE during development process, so give it a try. You can use compilers from Sun Studio 11 (stable version already available) together with IDE/debugger from Sun Studio 12 (EA available for download and stable version on its way).