<div class="gmail_quote">On 19 March 2010 10:55, Daniel Dunbar <span dir="ltr"><<a href="mailto:daniel@zuster.org">daniel@zuster.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

On Tue, Mar 16, 2010 at 8:37 AM, Aaron Gray<br>
<div><div></div><div class="h5"><<a href="mailto:aaronngray.lists@googlemail.com">aaronngray.lists@googlemail.com</a>> wrote:<br>
> On 16 March 2010 15:20, Daniel Dunbar <<a href="mailto:daniel@zuster.org">daniel@zuster.org</a>> wrote:<br>
>><br>
>> On Mon, Mar 15, 2010 at 6:01 PM, Aaron Gray<br>
>> <<a href="mailto:aaronngray.lists@googlemail.com">aaronngray.lists@googlemail.com</a>> wrote:<br>
>> > On 16 March 2010 00:31, Daniel Dunbar <<a href="mailto:daniel@zuster.org">daniel@zuster.org</a>> wrote:<br>
>> >><br>
>> >> Hi Aaron,<br>
>> >><br>
>> >> This has been on my list, but for the time being I find it convenient<br>
>> >> to have all the code in the same place. I also want to factor out a<br>
>> >> few more minor things before splitting in the target independent<br>
>> >> assembler and the object file writer.<br>
>> >><br>
>> >> Is this blocking work you are hoping to do?<br>
>> ><br>
>> > Hi Daniel,<br>
>> > It would be good to get to the stage where I can work on the COFFWriter<br>
>> > and<br>
>> > COFFStreamer.<br>
>><br>
>> Ok. Do you mind waiting ~a week?<br>
>><br>
>> > Basically I can wait but I thought a few file and class wise<br>
>> > normalizations<br>
>> > would not go a miss :)<br>
>> > Also I wanted to introduce a common ObjectWriter abstract class for<br>
>> > MachObjectWriter, ELFObjectWriter, and COFFWriter, with Write and<br>
>> > virtual<br>
>> > WriteObject methods.<br>
>><br>
>> Right. I have this stuff planned out in my head, along similar lines.<br>
>> I'll try to get it in the next week but right now I wanted to get<br>
>> x86_64 Mach-O support up, which gives two concrete implementations to<br>
>> factor for. Work for you?<br>
><br>
> Okay, thats great :)<br>
<br>
</div></div>As of r98955, MCAssembler is now Mach-O independent.<br>
<br>
We still need to either change MCMachOStreamer to be MCObjectStreamer,<br>
or implement MC{ELF,COFF}Streamer classes, before immediate work on<br>
ELF/COFF MCObjectWriters can begin.<br></blockquote><div><br></div><div>Nice, thanks Daniel that was quick ! <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">The only thing I am not sure about is the genericity of the Layout code when its applied to COFF and ELF. The section headers/table is very simple on COFF.</span></div>

<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div><br></div><div>Anyway I will implement COFF file generation and see what happens. I have my own COFF file reading and dumping code which may come in hand as it will work across platforms with out needing binutils'es objdump across platforms. With a COFFWriter., ArchiveReader, and PEWriter too I am looking to implement a COFF Linker for LLVM.</div>

</span><div><br></div><div>I have to modify MCSectionCOFF, TLOF and AsmPrinter to get rid of legacy implementation.</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>

But before that I will be semi preocupied as llvm-gcc 2.7 prerelease-1 and main line SVN llvm-gcc-2.7 are broken on Cygwin with a weird syntax error that, causes error propogation from stddef.h threw the Windows.h headers. Its weird as MinGW compiles properly. Anyway got to get to the bottom of this first. Hopefully this should only take a few days.</div>

<div><br></div><div>Many thanks,</div><div><br></div><div>Aaron</div><div><br></div></span></div></div>