Course overview
This programming diploma course takes you through both basic and in-depth concepts related to C programming and assembly language. We explain how function calls are translated to assembly and parameters passed to a function. We then show you how local variables are stored on stack and how they go out of scope after function calls. C is a popular and powerful programming language so sign up to add a valuable skill to your professional portfolio.
Course description
This programming diploma course begins by laying out the 8086 processor architecture (x86 processor). We then take you through commonly used assembly instructions and explain the use of stack and related instructions. We establish the role and many capabilities of microprocessors. You will also learn about stack, stack pointer and arithmetic-logic unit (ALU) instructions as we examine examples of different types of compilers like the GNU compiler collection (GCC), Turbo C and MS Visual C models.
The course goes on to break down how to convert C programs to assembly languages in either an optimized or unoptimized manner. We explain that many redundant operations have to be removed to optimize a piece of assembly code. Unless a compiler is used in a particular optimized mode, it may not be possible to always find the most optimized and quickest instruction set at the assembly level. We also teach you how to make use of the ‘PUSH’ and ‘POP’ operations to swap two variables in C.
We then go through the compilation steps in C programming. We study how high-level function calls are translated into low-level assembly instructions using the concepts of ‘prologue’ and ‘epilogue’ and how variables are passed and assessed in C. You will also learn how certain C functions are optimized by exploiting hardware loops. Finally, we show you how to compare the impact of recursion and loops to appreciate the importance of local variables’ security. This diploma course helps you master C programming to take the next step in your career
Prerequisites: This course requires a solid foundation and a good understanding of C programming.
Entry requirements
Get in touch with the course provider, or visit their website, for details.
Learning outcome
In this free course, you will learn how to:
- Demonstrate how function calls are translated to assembly
- Describe how parameters are passed to a function
- Explain how local variables are stored on stacks
- Define the phrase ‘local variables go out of scope after the function call’
- List and explain the various calling conventions for C functions
- Explain the allocation of local variables space
- Compare C and C++ at the assembly level
- Identify certain hardware instructions used to speed up C functions
- Explain why recursion is not a great idea for repercussions
- Recall the instructions that need to be executed before entering or exiting a function
Course options
Course Type: Online
Details
Venue details
Not seeing a course venue? Online courses may not have a venue at all or could still be arranging one.
Get in touch with the course provider if you need more information about the venue.