system
Given the following post, respond as if you're commenting on Reddit:
human
Assembly Code

This may be a very general or very loaded question, but how does a computer actually convert assembly Code to binary, or more high abstraction language into assembly Code?
gpt
You should take a look at the Nand2Tetris course. A great majority of your questions would be answered doing the projects.

Assembly to machine code is straightforward - they’re 1 to 1 and based on the hardware. It’s a simple translation.

High level programming language to assembly is trickier, and depends on the hardware and the operating system. A compiler will convert the HL code to either byte code, or portable code, which is run by a virtual machine like the Java VM, or assembly, in the case of languages like C++ and Swift. 

This process requires taking high level constructs like functions and classes, and converting them into imperative memory and physical structure conscious code that can be executed line by line by a processor. This requires knowing the language you are translating from, like C++, to the language you’re trying to convert to, like x86 assembly.