Remix.run Logo
prabhanjana_c 9 hours ago

Great to see the AGC assembly code and knowing that Apollo 11 is coded purely in assembly. Not sure if it has any compiler. Also found https://github.com/virtualagc/virtualagc while searching for compiler.

palmotea 8 hours ago | parent | next [-]

> knowing that Apollo 11 is coded purely in assembly

Of course. According to Wikipedia, it was introduced in 1966, so it's development must have been started earlier. Also according to Wikipedia higher-level languages like Fortran and Cobol were introduced in 1957/58. They were a cutting-edge technology of the era.

So programmers of the day would have been comfortable with assembly, and the inefficiency and novelty of higher-level languages would have probably been a bad fit for the application.

> Not sure if it has any compiler.

What you're looking for is an assembler.

pistate 8 hours ago | parent | prev | next [-]

Part of the AGC ROMs implemented a virtual machine for things like matrix multiplication. So, a higher level of abstraction was available but it was still very much coded in its own assembly language.

shakna 7 hours ago | parent | prev [-]

The assembler you're looking for, is called YUL. [0]

You can find much of that code here [1], but unless you have a Honeywell, it isn't much help. yaYUL is a modern remake, and can assemble most of the Apollo code.

[0] https://www.ibiblio.org/apollo/Documents/agcis_13_yul.pdf

[1] https://klabs.org/history/software/yul/