⌨️CODE: Source Code vs Binary Code

Source code refers to human-readable code written in a programming language, while binary code is machine-readable code that consists of zeros and ones.

Machines Talks
2 min readApr 19, 2023

Source-Code: is the collection of instructions and statements that a programmer creates in a computer programming language. The source code then converted into machine code by compiler.

Declarations, instructions, functions, loops, and other statements that instruct the program on how to run are all included in source code.

Programs may include one or more source code text files, which can be saved on a computer’s hard disk, stored in a database, or save in code snippet online source control management system like GitHub e.g. Example Code Snippet

Binary-Code: Binary uses a pattern of ones and zeroes to represent numbers in its base-2 number system. Computers could represent numbers in binary code by connecting switches in series.

Early computer systems had mechanical switches that turned on to represent 1, and turned off to represent 0.

Inside the CPU and RAM, modern computers continue to use binary code in the form of digital ones and zeroes.

A digital one or zero is simply an electrical signal that’s either turned on or turned off inside of a hardware device like a CPU, which can hold and calculate many millions of binary numbers.

Eight “bits,” make up a “byte,” which is how binary numbers are represented. In an 8-bit binary integer, a bit is a discrete one or zero.

If you found this Tech Story interesting and useful, feel free to share!

Hi, We’re Machines Talks. We’re trying to explain computer stuff in a simple and engaging manner.

--

--