Assembling the output of llc

Here's a more specific question about compiling native code: When I use llc to generate a .s file, and then I try to assemble it using 'as', I get tons of errors - it appears to be choking on lines like the following:

        movl L"_tart.core.Iterable<tart.core.String>:type"$non_lazy_ptr, %eax

The error I get is:

        out/Debug/test/tart/FileStreamTest.out.s:95:junk `"_tart.core.Iterable<tart.core.String>:type"$non_lazy_ptr' after expression

(plus a few hundred more like it.)

-- Talin

Talin wrote:

Here's a more specific question about compiling native code: When I use
llc to generate a .s file, and then I try to assemble it using 'as', I
get tons of errors - it appears to be choking on lines like the following:
  

Have you tried assembling the .s file with gcc? That's what I've done as gcc automatically passes the proper options to as and ld (if such options are needed). I'm not positive that it'll solve your problem, but it's probably worth a try.

-- John T.