Right Aviopic, sure the air is compressed in a turbine engine. In a modern high bypass ratio engine the core air at max
N2 rpm is in fact compressed up to around 25 times which compares quite well to the compression ratio of a diesel engine.
You may complain that a diesel engine usually only has a compression ratio around 16 or 18. But that doesn't take into account the extra pressure from the heat buildup during the compression stroke.
But the anti knock value of the fuel has no relevance in the turbine since the fuel is burned immediately and graduately as it is injected into the compressed air in the combustion chambers.
That is in fact also identical to the diesel engine on which the fuel is injected into the cylinder after the compression stroke.
On an ordinary gasoline engine it is very different. The air and the fuel is mixed in the carburetor or - in case of most fuel injection systems - injected into the inlet manifold during the inlet stroke and before the compression stroke. Then it is ignited by the spark plug, and one of two things happen:
1. the flame spreads gradually away from the spark plug into the fuel/air mixture - the normal situation.
2. the fuel/air mixture self ignites and burns in one sudden process - that's knocking.
No engine works well with a sudden burn of any extended amount of fuel. In the turbine engine and the diesel engine the burn becomes gradual by the gradual injection into the combustion chamber. In the gasoline engine it becomes gradual by adjusting the compression ratio and fuel properties (octane number) to such values that self ignition does not occur.