Zig compiler as assembly compiler & linker

By means of expirement i used to zig compiler to compile & link & produce an executable of the assembly code produced by the crystal-language compiler and the ocaml-language compiler.
I wonder is this “stupid” or could there be practical cases to do so ?

I’m not familiar with those languages, but if they support a “C-like” interface where you know the symbols you need to link against and they use the C ABI, then it should be fine to link object files together no matter what languages they came from. Using assembly as an intermediary seems unnecessary, what’s the purpose of that?

Because both languages have no C-like interface.
Note i found two languages with a C-like interace, namely nim and chicken-scheme.

I wrote a very short article,