Add the olive oil to a large skillet over medium heat. When the oil is hot, add the garlic and the pepper. Mix together, lower the heat and cook until garlic is golden. Remove from the heat. Cook the spaghetti until al dente (about 2 minutes less than package directions), drain and add it to the skillet. Cook together for 30 seconds. Add salt to taste.