Assembly Integration into Compiler

Steven Schveighoffer schveiguy at yahoo.com
Thu Jul 7 11:13:35 PDT 2011


On Thu, 07 Jul 2011 14:01:10 -0400, Walter Bright  
<newshound2 at digitalmars.com> wrote:

> On 7/7/2011 10:45 AM, eris wrote:
>> This would seem to break modularity and require every compiler
>> to re-implement every possible assembler.
>
> Not really. Assemblers aren't hard to write.

To clarify, D's inline assembler has it's own syntax, and works across  
OSes.  Essentially, D doesn't support other assemblers, it simply  
implements an assembler inside D.  Plus it integrates symbols with normal  
D code, making assembly *much* easier to write.

Read the documentation here: http://www.digitalmars.com/d/2.0/iasm.html

-Steve


More information about the Digitalmars-d mailing list