Go compiler moving from C to Go

Russel Winder russel at winder.org.uk
Sun Dec 22 00:10:51 PST 2013


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:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131222/0b557652/attachment.sig>


More information about the Digitalmars-d mailing list