r/learnprogramming • • Apr 05 '22

Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them

Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.

Someone else who reads yours and does understand it, try to explain it to them to help them learn

1.6k Upvotes

738 comments sorted by

View all comments

Show parent comments

11

u/MrSloppyPants Apr 05 '22

All higher level languages are compiled down to assembler and then machine code. Assembler is almost exactly how the CPU actually executes code. A CPU has no idea what a Python statement is, a CPU needs to know the specific OpCode of the instruction you wish to execute, what data needs to be pushed into the appropriate registers, where the stack pointer is, where the instruction pointer is, and more. Taking a compiler course to understand how computer instruction sets actually work is very beneficial

1

u/srethrowaway808 Apr 06 '22

Can you recommend a compiler course?