Exactly, I also see code generation to current languages as output only an intermediary step, like we had to have those -S switches, or equivalent, to convince developers during the first decades of compiler existence, until optmizing compilers took over.
"Nova: Generative Language Models for Assembly Code with Hierarchical Attention and Contrastive Learning"
https://arxiv.org/html/2311.13721v3