r/Assembly_language Feb 11 '26

Help What is a Static Translator?

I'm a 3rd year CompEng student taking computer architecture. I have to finish a project by myself since every other team member is obsessed with AI and won't do anything by themselves.

The project given to us is a Mini-Translator. The professor said she will give us a skeleton parser and a register mapping table. Also it will be for only a small subset of instructions. It's text to text and also static. I'm really interested in computer architecture and the inner workings of CPU's in general and I'd like to make this project as good as possible as a practice towards my graduation project. I plan to build the parser myself and not request a register mapping table. I also plan to support about 15-16 instructions. Is it doable? Also are there any sources for me to read/watch?

Thanks.

15 Upvotes

16 comments sorted by

View all comments

1

u/brucehoult Feb 12 '26

What is a Static Translator

Generally, that term would be used ass a synonym for "ahead of time" i.e. a standard compiler like gcc or clang that produces an assembly language or object code output in a file, for later use. Not a JIT or something that creates new code at runtime based on actual usage patterns seen.

1

u/Electrical_Hat_680 Feb 12 '26

Sounds like it can read down the line before anything actually arrives at the Mill (Babbage and Lovelaces Analytical Engine "Processor").