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