Bring large pot of water to boil and cook spaghetti al dente.
While the pasta is cooking, heat the oil in a large skillet over low heat and add the garlic, stirring occasionally.
After 4-5 minutes, add the olives and sun-dried tomatoes. Cook for 3 minutes over medium heat.
Add cooked spaghetti to the skillet and toss well. If more coating is needed, add a little more olive oil.
After pasta is tossed well, serve topped with grated parmesan cheese.