I want to build some code using Sun Workshop 5, I don't have this version with me now, tried to search it on internet, but could not find it. If you have any reference or links to download, please inform me. :-)
(1) You originally posted this to a Solaris forum.
This isn't an OS question.
(2) A Google search for "Sun Workshop5" instantaneously found: Re: Where to download Sun workshop 5
I'ver arranged for your post to be moved from that Solaris forum to a much more appropriate forum where it may actually be on-topic.
Adding to the information in the referenced post Re: Where to download Sun workshop 5
Workshop 5.0 was released in early 1999. It has not been available for nearly a decade. It did not support Solaris versions after Solaris 8, which is itself dead.
You can find recent versions of Studio (the name for Workshop since 2002) here:
They are free to download and use for any commercial or non-commercial purpose.
The Release Notes for each available version list the Solaris and Linux versions they support.