4 ms·
keeping assembly in asm files, c in c files, compiled by their respective compilers, then linked, has fewer footguns than inline asm
by hello_computer 2y ago
keeping assembly in asm files, c in c files, compiled by their respective compilers, then linked, has fewer footguns than inline asm
- kccqzy 2y agoYeah but then you have to maintain function interfaces between them in order to link them. The case in this article is for inserting one single asm instruction in an otherwise C codebase.
- hello_computer 2y agoplatform ABI is usually better and more clearly defined than whatever GCC & Clang feel like doing to inline ASM across versions and optimization levels