Heat the oven (350F/180C/Gas 4). Grease an ovenproof dish well with some butter.
Grate the cheese and cover the base of the dish with half of the cheese. Break the eggs, one at a time, into a cup, then slide them carefully on top the cheese. Season well with the salt and pepper, and cover the eggs completely with the rest of the cheese.
Dot with the butter and bake in a hot oven for about 15 minutes, until the cheese is bubbling and the eggs are just set. Serve at once, with crusty French bread, roll, or crisp toast, or a salad.