How to compensate backlash?

I have a question about strategies for backlash compensation. This topic is more theoretical and for curiosity for me untill now, since I did not measure my CNC’s backlashes and they do not look big. But in general everybody can be happy to reach better accuracy, even beyond needs.

I see three scopes to eliminate or compensate backlash :
-mechanics design and settings,
-postprocessor settings,
and gcode sender software settings.
Is any of them not relevant, and did I miss other ways?

Gcode sender softwares and mechanical tuning may not be considered very relevant in this forum. But please could you share links, possible references and software suggestions if any ?.
I read ShetCAM offers to create “rules” but hey do not offer to be triggered specifically when changing the way of an axis movement, so I do not see how it could be of some use ; any idea about that ?
The post-processor compensation may be a solution, but that may be complex, and a big load of work of their own. even without this feature.
There may be already universal editor programs dedicated to that: analyzing the gcode, locating each motion sense switch to insert compensation movements and G92 coordinate correction, according to the backlash measured by the user for each axis.
If anyone has an idea to increase accuracy in this way, I would be glad to read of them.

With “professional” CNC machines I have always seen this handled in the machine controller “parameters” - basically stuff that maintenance or service techs deal with regarding set-up or repair of the machine. It’s usually not an operator facing item - the idea being that you set it up (maybe adjust as needed to account for wear or damage), and the day-to-day programmers and operators just tell it honestly what they want it to do, without worrying about backlash (that’s the controller’s job).

Now manual machines or malfunctioning CNCs are obviously different, and I’ve heard about taking steps chasing precision tolerances. But that’s been the general thing I’ve seen in my limited experience.