From the course: Advanced C Programming: Integrating C and Assembly Language

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Choosing C or assembly

Choosing C or assembly

- [Instructor] It shouldn't really be a choice between one language or the other. Writing a major project in assembly is possible, but a horrible waste of time. Further, the project would be specific to a single platform. It's more of a challenge or something a hobbyist would attempt, and it could be fun, but writing the whole thing in assembly, only the bold dare. Hands down, the C language offers faster development time. It excels comparatively at so many levels, dealing with different data types, input and output, the ability to deploy on multiple platforms, and so on. Where C does worse than assembly are size and speed. Even then, C isn't notoriously bloated and slow. Therefore, the advantage here is to choose when to use assembly to help bolster those parts of your C program that need optimization. Out of context and using simple source code, it's difficult to show a specific example of optimization. Still, here is…

Contents