Physics, asked by ajish3275, 1 year ago

What is cross compiler? Compare assembly language and C programming for microcontroller. Can we use assembly instructions in C program for microcontroller?

Answers

Answered by sanjana01234singh
0

A compiler which can convert instructions into machine code or low-level code for a computer other than that on which it is run is called cross compiler.

1.C is a middle level language used for high level and low level applications.

2.The difference between low level and high level language is: Low level language is more closer to the hardware.

3.Hence, both C and Assembly are Low level programming languages.

4.We can use C for system level applications i.e. for example you can design your own operating system using C. And

5.Assembly language is much more closer to the hardware.

6.The first thing to design operating system is to design your processor.

7.Here comes into play Assembly language.

8.Assembly language directly interacts with the processor specific architecture.

9.Every processor may it be X86, ARM has their own set of assembly instructions.

10.Microcontroller and Microprocessors uses today Assembly language for processor design.

Yes you can use but All you need to do is follow few programming rules; you can call assembly routines from C and vice-versa

Similar questions