import sys, subprocess
subprocess.run(["gcc", sys.argv[1], "-o", "a.out"])
Writing a C compiler in 500 lines of Python - https://news.ycombinator.com/item?id=37383913 - Sept 2023 (165 comments)
Never actually looked into how compilers work before, it's surprisingly similar/related to linguistics.
weregiraffe•1h ago