Inherent code performance advantages of D over C?

Iain Buclaw ibuclaw at gdcproject.org
Sun Dec 15 00:47:16 PST 2013


On Dec 14, 2013 10:51 PM, "Walter Bright" <newshound2 at digitalmars.com>
wrote:
>
> On 12/14/2013 11:46 AM, Iain Buclaw wrote:
>>
>> I honestly don't know how one would be able to make AsmStatement work
>> for non-x86 architectures.  At least this is not possible in GDC
>> unless you want to resort to doing things in a way that are shamed
>> upon (like checking the definition of a particular TARGET macro :)
>
>
> I have no idea why it would be hard for non-x86?
>

Unlike dmd - gdc (the front end language) doesn't know/doesn't care about
what precise platform/target it is compiling for from within gcc's
framework. It may know features of the target - pointer size, real type,
va_list, which direction the stack grows - just not enough to know which
architecture to interpret for. So writing an assembler for ARM was an
interesting exercise, but gave zero brownie points in terms of usefulness.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131215/5b6c63db/attachment-0001.html>


More information about the Digitalmars-d mailing list