Pound sugar with a mortar and pestle until finely ground.
Add chiles, and pound until crushed into large pieces.
Add garlic cloves, and pound until lightly crushed but still intact.
Transfer to a small bowl.
Add fish sauce and lime juice; stir until sugar is dissolved.
Let stand until flavors meld, about 5 minutes.
Season to taste with additional fish sauce and lime juice.
