Yes, there is one, it is part of the MakeCode project.
"Microsoft MakeCode: from C++ to TypeScript and Blockly (and Back)"
"Microsoft MakeCode: from C++ to TypeScript and Blockly (and Back)"
The main features of PXT are: [...] an ARM Thumb machine code emitter
http://delivery.acm.org/10.1145/3220000/3211335/lctes18main-...
https://www.microsoft.com/en-us/research/uploads/prod/2018/0...