I find that understanding is much more useful than translating… map the words directly to machine code, don’t translate them to another high-level language and then compile, it’s too slow, and doesn’t work well if your translation engine is buggy.
For this it helps to be in an immersion class.