Mix sugar and eggs well. Add pineapple, flour and soda. Mix. Bake in a 9x13-inch pan at 350° F or about 45 minutes.
Frosting: Cream margarine and cream cheese. Add pineapple, sugar, vanilla and coconut (if desired). Spread over cooled cake.
Servings: