Bring the milk to the boil in a frying pan and then remove from the heat. Gradually add the semolina to the milk while stirring. Cook for about 15 minutes on a low flame until a thick paste is obtained. Add the egg yolks, the pecorino cheese and the butter, season to taste and continue to stir until the mixture comes off the pan (on a low flame). Then spread the mixture on a baking tray lined with parchment paper, 2 cm thick. Preheat the oven to 220 °C.
When the mixture has cooled down a little, cut it into squares or half-moons and grill them on both sides for 5-7 minutes.
The slices can also be fried in a frying pan. For this, however, they must be turned in flour at the beginning and then in an egg mixture (like piccata).