<!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.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>> Which functions in particular are you not
seeing?<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>_alloc and _free</FONT></DIV>
<DIV><FONT face=Arial size=2> <BR>>> I am compiling the examples from
llvm/test/feature, about 28 out of 34 <BR>>> assemble fine. Just cannot
seem to get the externals listed, been trying for <BR>>> several hours
:(<BR>> <BR>> There are two types of external functions that the code
generator deals <BR>> with: external functions that are present in the LLVM
program, and <BR>> external functions used by the code generator. I
suspect that you are <BR>> hitting cases where the later are not getting
printed.<BR>> <BR>> If you look at the PowerPCAsmPrinter.cpp it has to do
very similar things <BR>> to what you are doing. Note that it uses a
"FnStubs" set to collect <BR>> references to external functions as they are
emitted. Once it builds this <BR>> set, it emits a stub for each
external function at the bottom of the file. <BR>> I think you should do
something similar to this.<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I was getting confused by the feature test cases.
So am now writting my own.</FONT></DIV>
<DIV><FONT face=Arial size=2>Sorry It was late and I have just not been looking
at things quite properly and so have been getting confused.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>if (!M.empty())</FONT></DIV>
<DIV><FONT face=Courier size=2> for (Module::iterator F = M.begin(),
E = M.end(); F != E; ++F)</FONT></DIV>
<DIV><FONT face=Courier size=2> if ( !F->getIntrinsicID()
&& F->isExternal())</FONT></DIV>
<DIV><FONT face=Courier size=2> O << "EXTERN
" << Mang->getValueName(F) << " : NEAR" <<
"\n";</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The above works fine with normal external
functions.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regarding _alloc and _free they do not seem to be
added to the external functions when they are used in the test case
"feature/testmemory.ll", so should I include such cases in an include file or
add them to the head of the generated file or something like that.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Doing quite well now</FONT><FONT face=Arial
size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have just got to deal with STRUC's as the MASM
assembler requires some level of typing.</FONT></DIV>
<DIV><FONT face=Arial size=2>And then produce some conclusive purpose written
test cases.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I should take a rest and then perservere a bit more
before panicing and asking for help !</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers,</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></BODY></HTML>