2 cups flour
2 cups of sugar
2 teaspoons baking soda
1 (20-ounce) can crush pineapple with juice
1 cup chopped pecans, optional
1 stick butter, softened
1 (8-ounce) package cream cheese softened
2 cups confectioners sugar
1 tablespoon vanilla
Mix flour, sugar, and baking soda in a large bowl. Add in the eggs, pineapple along with its juice, and the pecans, if using. Stir just until moistened. Pour into a buttered 9×13-inch baking pan. Bake in a preheated 350°F oven for about 35 minutes or until a toothpick comes out clean. Cool completely.
Combine cream cheese, butter, confectioners sugar, and vanilla. Beat until smooth.
Frost cake using all the frosting.