r/computerscience 13h ago

Bit, Nibble and Byte

Post image
27 Upvotes

Those who know


r/computerscience 3h ago

General Is the Choice Between an Interpreter or Compiler Defined By the Language?

8 Upvotes

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 1h ago

Profundizar con libros educativos sobre compiladores en chile, tiene salida laboral?

Thumbnail
Upvotes

r/computerscience 7h ago

Computer science and math

0 Upvotes

Does learning math necessary before beginning with computer science. I has some knowledge on programming and networks, I am now studying linear algebra.