<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello again,</FONT></DIV>
<DIV><FONT face=Arial size=2>Sorry I attached the wrong/old version of the
source file, here's the new one (please do not commit this :)</FONT></DIV>
<DIV><FONT face=Arial size=2>It may also be from an older out of date download,
I have to check this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I now have an academic version of MS Visual Studio
2003 for LLVM Windows development :)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>On compilation the following and simular errors are
being flagged up :-</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Courier
size=2>c:\llvm\llvm\lib\Target\X86\X86AsmPrinter.cpp(131) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I thought I should mention it and possibly at some
point do something about them, either compile a list, or when/if I get commit
permission to add the appropriate casts.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Aaron</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT face=Arial
size=2></FONT></FONT></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=angray@beeb.net href="mailto:angray@beeb.net">Aaron Gray</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=llvmdev@cs.uiuc.edu
href="mailto:llvmdev@cs.uiuc.edu">LLVM Developers Mailing List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, May 10, 2005 5:26 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> NASM Backend</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi again,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have put together a "blank skeleton" for a
X86NASMPrinter class, with effectively the same behaviour as the
X86IntelAsmPrinter class. I had to do this within the X86AsmPrinter.cpp file
rather than as a separate source file as the dependancies were so. Please do
not commit this yet, I have included it not for confidence
sake :))</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I do not know whether it is a good idea to split
the X86AsmPrinter.cpp class up into a '.h' file as well as a '.cpp' file thus
allowing the NASMPrinter to be in a separate '.cpp' file or not.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Also it would be possible to split X86AsmPrinter,
X86IntelAsmPrinter, and X86ATTAsmPrinter up into different '.cpp' files and
either a common or separate headers. Should I do this ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>There are another couple of other issues I
would like advice on :-</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>One is testing how to go about testing the NASM
backend and integrating the testing with the existing test framework.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The other is why do the following methods return
false :-</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> <FONT
color=#0000ff size=2>bool</FONT><FONT size=2>
X86IntelAsmPrinter::doInitialization(Module &M)</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2> <FONT
color=#0000ff size=2>bool</FONT><FONT size=2>
X86TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream
&Out)</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Aaron</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>