Preheat the Oven
Preheat your oven to 350°F (175°C). Grease a 9x13-inch baking dish or line it with parchment paper.
Mix the Cake Batter
In a large mixing bowl, combine the flour, sugar, and baking soda. Add the eggs, vanilla extract, and undrained crushed pineapple. Mix until well combined. Fold in the chopped pecans.
Bake the Cake
Pour the batter into the prepared baking dish. Bake for 35-40 minutes, or until a toothpick inserted into the center comes out clean. Let the cake cool completely in the pan.
Prepare the Frosting
In a separate bowl, beat the softened cream cheese and butter together until smooth and creamy. Gradually add the powdered sugar and vanilla extract, mixing until fully combined.
Frost the Cake
Spread the frosting evenly over the cooled cake. Sprinkle the top with additional chopped pecans, if desired.
Serve and Enjoy
Slice into squares and serve. Refrigerate leftovers to keep the frosting fresh.