Are you among them who feels programming languages have actually made our life awful and you have actually no clue exactly how to understand them like computer does? Then you space at the best place. Take a cup of coffee and enjoy learning about basics the programming languages through each sip.

You are watching: The only language a computer can understand is

They speak that computer science is no an ext about computer systems then astronomy is about telescope. True that we can’t check out the greater aspects the it there is no venturing into the element ones.

Note: all the answers space designed to define the basics in the most simple and simple method possible..


*

*

What is a programming language?

A programming language is a official language for us. That helps united state to communicate with the computer and also ask it because that our wanted output. Programming languages consist of a collection to indict that we give as with sentences or statements us say to another human gift which communicating.

What space cryptic languages?

You see, cryptic way having a an interpretation that is mysterious or no discovered. So in case of programming languages, low-level password are frequently cryptic and also not human-readable. For instance assembly language and machine language which is sort of mysterious because you won’t know anything just by reading it (unless friend are already familiar v it).

For example:

in Java, the enhancement of 2 numbers:

int a = 12;int b = 17;int c = 342;int d = a + b + c;System.out.println(“Addition result = “ + d);but in assembly: (for 8086)

data segmenta db 09hb db 02hc dw ?data ends code segmentassume cs:code,ds:datastart:mov ax,datamov ds,axmov al,amov bl,badd al,blmov c,axint 3code endsend startOne can interpret the definition of the code just by looking at it in instance of Java but it is complicated in case of assembly. So we can say the it is an ext cryptic.

But, what does a computer system understand?

The only language that the computer system can procedure or execute is called device language. It is composed of only 0s and also 1s in binary, the a computer system can understand. In short, the computer system only understands binary code, i.e 0s and 1s.

And, what do we give to a computer?

What we provide to our computer is a programming language which is more in a human-readable format. This type of languages is composed of English keywords and also convenient to remember. This are referred to as Hight-Level Languages. For example, C, C++, Java, Python, JavaScript etc.

If a computer system only understands binary code, then how it understands HLL(High-Level Languages)?

Simple, that converts High-Level language to that is understandable format(machine/object code).

What is thing code?

When you have actually a Java program and also you run in, you offer that routine to the compiler(a regime that counter the password you gave into a machine-code, binary (1’s and also 0’s) password that deserve to be executed straight by the CPU) and the compiler will develop the output in assembly code, which is still human-readable, however the machine can’t read). Now, that assembly code will enter the assembler and also assembler is going to develop you some code. That is known as Object Code(which is a portion of device code). Now, device code is binary (1’s and 0’s) password that deserve to be executed directly by the CPU, in other words, now your computer understands what you room saying it.


*

*

*

Note: once you translate in (or, run) a program, usually then you space not going to usage both compiler and assembler. The compiler is in reality compiler+assembler+loader+linker i m sorry converts your readable password to machine-readable code.

How can the user give maker code to computer?

Well yes, you can give direct maker code to computers, however your code will be simply 0s and also 1s. And by computers, I average microprocessors(It is an Electronic maker which acts choose CPU), not the usual laptop computers or desktops you are acquainted with. Largely microprocessors take it data intake in assembly though.

For example, view the Microprocessor Trainer Kit (8085) below:


What is assembly level language?

An assembly language is a low-level programming language designed for a specific kind of processor.

What is the difference between assembly level language and machine language?

Machine language is a language that encounters only binaries(0s or 1s). It is directly executed through the computer as that is in a machine-readable format. Assembly language is a low-level programming language that needs a software application program referred to as an assembler to transform it right into machine code(0s and 1s format).

What room machine-dependent languages and also machine-independent languages?

Machine dependency language is a language which only a particular form of an equipment can understand. If we change the machine and run the same code, then the new maker might not translate the code or produce a various output. For example, machine code or Embedded device programs(programs supplied for washing maker or traffic control system etc.). An equipment Dependent language are offered in scenarios where portability is useless.

But, Machine live independence language is the one which have the right to run top top any an equipment and offers the same output no issue what is the operating system. For instance in Java, since of JVM( Java online Machine), it establish Java compiled code and then renders it an ideal to run on any type of OS it is to run on. For this reason the JVM renders the Java code machine Independent.

A true machine-independent language would create exactly the same output no matter which computer system or Operating device it was operation on.

What is the an easy structure the Assembly Language?

Assembly language is just an additional programming language that again has actually its very own syntax for writing down instructions. A great tutorial for expertise Assembly might be TutorialsPoint or this.

But, every assembly language instruction includes an opcode and also an operand. The opcode is the action that is enforcement by the CPU and also the operand is the data or memory location provided to execute that instruction.

For example,

MOV A, 2H ; // MOV in the action/mnemonics and also A, 2H is the operand

What space the mnemonics and also opcodes?

We routine a microprocessor in assembly language. Currently let’s see an initial how to compose a straightforward assembly language in the 8085 microprocessor.

Some stuff to consider prior to that is,

A microprocessor executes instructions offered by the user in a language understood by the microprocessor.Microprocessor understands the language the 0’s and 1’s only, i beg your pardon is called an equipment Language. (Same as usual computers)For e.g. 01001111 — Is a valid machine language indict of 8085It uses English keywords to stand for an action, i beg your pardon is dubbed Mnemonics. For example, MOV: transfer of Data, ADD: add two values, SUB: subtract two values

Now, Assembly language regime to add two numbers

MVI A, 2H ; Copy value 2H in A MVI B, 4H ; Copy worth 4H in B include B ; A = A+BHere in the code MVI is the mnemonik which represents the activity “Move Immediate”.

Now, the Opcode represents Operational code which says us how the instructions(or mnemonics) get stored in computer memory(every mnemonics reserve some an are memory in byte form). That is a number taken by your an equipment that claims your computer system which operation to perform. Currently the problem is very absurd come remember the opcode for every instruction therefore we use mnemonics instead.

In other words, every opcode has a human-understandable nickname, which is mnemonics. For Example:

Instruction: MOV B,A

Mnemonics- MOVOpcode- 0xb8Operand- B, AHex Code- 47HBinary code- 0100 0111

What perform you typical by “software style of the computer”?

Software architecture refers to the basic structures the a software program system and the technique of developing such structures and systems. It faces the software components of the system and also defines the inter-relation between them.

What do you average by “hardware design of the computer”?

Hardware architecture refers to figuring out the hardware components which demands to be fit in the system and deals with their relationship with each other.

See more: Shoreline Erosion And Coastal Flooding Are Two Consequences Of

As per Wikipedia:

In engineering, hardware architecture refers to the to know of a system’s physical components and their interrelationships. This summary often called a hardware style model, enables hardware developers to understand how their components fit into a system architecture and administer to software component developers important details needed because that software development and integration. Clear meaning of a hardware architecture enables the various timeless engineering self-controls (e.g., electrical and mechanical engineering) come work an ext effectively with each other to develop and also manufacture brand-new machines, devices and components.