<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 6, 2017 at 1:35 AM, Nicholas Wilson <span dir="ltr"><<a href="mailto:iamthewilsonator@hotmail.com" target="_blank">iamthewilsonator@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div style="word-wrap:break-word">
Luís, try using the -<span style="font-family:Menlo">no-integrated-as </span>
flag to execute the assembler for you.
<div>We should probably make that the default for MSP430.</div></div></blockquote><div><br></div><div>Cool. When I did that on macOS, LDC generated a lot of complaints, possibly because it is assuming mach-o files. I tried changing from -mtriple=msp430 to -mtriple=msp430-unknown-elf, to no avail. E.g.:</div><div><br></div><div>$ ldc2 -mtriple=msp430-unknown-elf -c -no-integrated-as qosd.d</div><div>ldc-ad1c8f0.s:3:11: error: mach-o section specifier requires a segment whose length is between 1 and 16 characters</div><div>        .section        .text._D4qosd3fooFZi,"axG",@progbits,_D4qosd3fooFZi,comdat</div><div>                        ^</div><div>ldc-ad1c8f0.s:6:2: error: unknown directive</div><div>        .type   _D4qosd3fooFZi,@function</div><div><div>        ^</div><div>ldc-ad1c8f0.s:8:2: error: invalid instruction mnemonic 'mov.w'</div><div>        mov.w   #42, r14</div><div>        ^~~~~</div></div><div><br></div><div>(...)</div><div><br></div><div>I didn't try it in a Linux host. I imagine a lot of the errors will go away there (because it assumes ELF), but possibly not the ones about 'mov.w'.</div></div></div></div>