From the course: Learning Assembly Language
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Calling assembler from other languages - Python Tutorial
From the course: Learning Assembly Language
Calling assembler from other languages
- [Instructor] Modern C compilers are able to produce extremely fast and compact code, close to what could be done in native assembler. Nevertheless, there are still times when you might want to call an assembler routine from a high-level language. For example, to manage interfacing with hardware or use specialized processor instructions. We've already seen how we can use an assembler to create machine code which can be directly executed in a high-level language program. Now let's take a look at how we can call an assembler routine from a high-level language. For this section of the course, we'll use the Windows subsystem for Linux and take a look at a Linux-based assembler called NASM.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.