3 ms·
Last I knew __asm doesn't work on amd64 or arm. Still the case?
by asveikau 9y ago
Last I knew __asm doesn't work on amd64 or arm. Still the case?
- planteen 9y agoFor what toolchain? GCC supports inline assembly for every architecture I have used it on (x86, x86-64, PPC, SPARC, ARM)
- asveikau 9y ago__asm{} as described in the comment I am replying to is an MSVC extension which lets you do assembly sprinkled with a mix of C identifiers. GCC's equivalent feature (asm() or __asm___()) is quite different, with the list of inputs, outputs, clobbers etc.