How can someone write program with 0s and 1s ?
With tremendous patience and knowledge of a particular processor architecture's machine code instruction set. It is possible, but for the majority of folks out there machine code is virtually unreadable. Instead, we use assembly language or high level languages.
there are 10 types of people in the world those who understand binary and those who don't.
0's and 1's are the main elements of the binary language,we can write the program if we are thorough with the binary codes of each and every character which a lot tough,hence instead compilers are used which convert our high level language into binary language i.e., 1s and 0's hope u understand
Where will we type these 1s and 0s to make a program ???
an assembler is the last step in higher level program compilation. this is where if someone so desired they would be able to write a program with 0s and 1s. The level slightly above this is ... assembly. you may have seen it, its stuff like mov A B mul C B D JMP ... the first part is a mnemonic, move, multiply, and jump respectively. You can use those simple commands to write programs (not many, but some people still program like this!). all the assembler does with that stuff is to change the mnemonics to opcodes (predetermined by the processor instruction set) which are represented binarily. the other part is getting the addresses of the data, A B C from memory. so what a 01 (machine code) program would consist of, would be the binary equivalent of the opcode, and the binary equvalent of the addresses of the operands.
Join our real-time social learning platform and learn together with your friends!