Sun Microsystems Inc., hard hit by a drop off in sales following the Sept. 11 terrorist attacks, posted a loss of $180 million for the quarter, as revenue plunged 43 percent from a year ago.