On Sun, 2013-12-22 at 04:48 +0000, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= […] > Depends, it allows you to add support for locking-mechanisms/SIMD > instructions/etc before getting language support. You want that > inlined and the compiler to do register assignment. I believe > LLVM just pass it on to the assembler almost verbatim. If done > right you wouldn't need to update the compiler in order to add > support for new instructions/trap mechanisms, updating an > external assembler should be sufficient, so it is a future-proof > technology. I think inline asm wrapped up as inline functions is > pretty neat, in the rare case where you need it (some rare CPUs > have built in true random() functionality for instance).
Historically, and anecdotally, I found that as soon as the assembly language was a function, it was better as a separate entity, that inline assembler only worked for accessing a processor instruction that the code generator could not generate. So I think you are making this same point, cf. SIMD instructions at the bleeding edge. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected] 41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected] London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part
