Bring a large pot of water to a boil, add salt, then add the spaghetti. Cook until it is al dente, about 8 minutes, then drain it well.
While the spaghetti is cooking, combine the tomatoes, garlic, and olive oil in a very large, heavy skillet. Cook over medium heat a few minutes. Cook over medium heat a few minutes, then add the drained spaghetti.
Toss the spaghetti and tomatoes together for several minutes, add the basil, season with salt and pepper, and add the hot red pepper flakes. Remove from the heat, add a little more olive oil if desired, then serve.