system
Given the following post, respond as if you're commenting on Reddit:
human
How does the PC turn lines of code into transistor actions and back?

My question is pretty basic but I can’t really get to the ground of it with just googling. 
Basically the logic in a pc works due to activating some transistors and reacting to the output they deliver. 

So when a chip is manufactured it’s just the hardware. What kind of code is used to turn lines of code into really giving volts through some transistors and interpret the result from knowing some give a 1 back and others a 0? 

I ever thought that the BIOS is used for this but as my understanding the bios is just there to make the big OS run on it. It seems like there has to be some kind of fundamental program that can transform lines of code into real hardware actions. What is this kind of code called ? It does have to be different on every different chip right? I mean if I just hav 5 billion transistors instead of 6 it needs to be adjusted to the right number and has to be made for one chip only.
gpt
You say it’s a pretty basic question but in reality your asking for a detailed answer on how a computer works, down to the wires.

The short answer is that code is compiled to cpu specific instructions, which are stored in memory; when those instructions are loaded into a certain part of the cpu, certain circuitry is enabled.

A modern cpu is very complicated so trying to understand on such a holistic way is pretty difficult; it’s best to understand each level of abstraction.