Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in C Programming by (45k points)

Could someone tell me the job of Assembler in C Programming?

2 Answers

0 votes
by (99k points)

Assembler in C Programming is defined as a program that converts Assembly language into machine code. It just converts assembly language or low-level codes into machine codes that could be better recognized by a specific type of processor. The assembler works similarly to a compiler. But compiler converts high-level language to machine-understandable codes.

If you wish to learn C Programming, I recommend you check out the C Programming course, from Intellipaat. Also, check out the YouTube video on Learn C Programming in 1 DAY.

0 votes
by (1.1k points)

Within the domain of C programming, one of an assembler’s main objectives is to produce executable binary code from an assembly language. Although a comptuer-generated c script usually gets converted into machine code with the help of a compiler, some exceptions arise especially in scenarios that require optimizing portions of c programs, where assembly language is useful. The stages of compilation of C programs incorporating Assembler can be treated in the following manner:

Compilation: The first step of the C compiler is to convert C code into assembly language. 

Assembly: The next stage involves the machine converting that assembly language to machine code. 

Linking: The last stage takes the machine code produced by the assembler as well as any additional libraries and combines them together into an executable program. 

To expect everything all developers are expected to write is along the lines of programming languages, the assembler management in C is directed to interpreting and converting into binary any assembly that has been written in the entire process of building.

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...