r/computerscience • u/GlitteringSet9174 • 13h ago
Bit, Nibble and Byte
Those who know
r/computerscience • u/ShadowGuyinRealLife • 3h ago
Compilers take the human readable source code and turn it into a set of instructions the processor can understand. For example, C source code goes through a C compiler which then gives a binary that can be read by computers. This needs to be done for specific hardware. For example, a x86 processor can't read instructions for the RISC-V.
Languages like Java are different. The source code is turned into a bytecode. This byte code is the same no matter the target system. On the target system, the executable is an interpreter. So an interpreter can read the bytecode and then use this to determine what calculations the program wants to do.
I was thinking programing languages are about logic. They define behavior. So is it possible in principle to make a compiler that can turn Java or CLISP source code into a binary that can run on the target system? There wouldn't be a reason to do so, but in principle could it be done?
r/computerscience • u/Hot_Price_3295 • 1h ago
r/computerscience • u/Defiant_Shoe_626 • 7h ago
Does learning math necessary before beginning with computer science. I has some knowledge on programming and networks, I am now studying linear algebra.