<br><br><div class="gmail_quote">On Wed, Apr 22, 2009 at 12:38 PM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
 <br><div style="word-wrap:break-word"><br><div><div>On 22.04.2009, at 21:13, Eliot Miranda wrote:</div><br><blockquote type="cite"><div class="gmail_quote">On Wed, Apr 22, 2009 at 11:28 AM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div><div></div><div><br> <br> On 22.04.2009, at 20:04, Eliot Miranda wrote:<br> <br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 Hi All,<br> <br>    I need to modify the autoconf scripts in the unix build to arrange to omit the -fomit-frame-pointer flag form on e of the files in Cog.  I&#39;ve asked Ian for help but he&#39;s not responded for whatever reason and I would like to solve the issue up front.  Is anyone familiar enough with autoconf and has the free time to hold my hand through the process.  I haven&#39;t got the patience to learn autoconf myself (fundamentally because I think its a heap of crap, waaaay too complicated to be worth the effort) but I would like to have the rest of the VM compiled with -fomit-frame-pointer, essentially for plugin performance, so I don&#39;t want to take the easy route and simply omit -fomit-frame-pointer throguhout, and I don&#39;t want to spend the time e.g. porting the Newspeak make framework, which would be a good thing in the long run.<br>
 <br> TIA<br> Eliot<br> </blockquote> <br> <br></div></div> Ian is on vacation.</blockquote><div><br></div><div>That explains it.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br> <br> Easiest might be to add -fno-omit-frame-pointer when your file is compiled, this should cancel a previous -fomit-frame-pointer.</blockquote><div><br></div><div>Right.</div></div></blockquote><div><br></div><div>
Actually, no. -fno-omit-frame-pointer seems to *force* a frame pointer even on platforms that by default have none ... or is that what you need?</div></div></div></blockquote><div><br></div><div>Right.  Somewhere (and I haven&#39;t found out where) the autoconf configuration decides to apply -fomit-frame-pointer, which is fine as it generates faster code, etc.  But I need (actually, want; I could work around, but shouldn&#39;t have to)  a frame pointer for one file, and a subsequent -fno-omit-frame-pointer will override a preceeding -fomit-frame-pointer with the compilers I&#39;m aware of.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div><div></div><div><br></div><blockquote type="cite"><div class="gmail_quote"><div>
  My problem, however, is how to get autoconf to generate a specific compile rule for one file.  I can define the alternative COMPILEALT macro but I can&#39;t yet figure out how to spit out that rule for a specific source file withoput hacking it at the wrong place.  But I&#39;m getting closer :/</div>
</div></blockquote><br></div><div>Assuming you put it in the vm directory, hacking platforms/unix/vm/Makefile.in should do it, no?</div></div></blockquote><div><br></div><div>Thanks for the suggestion!  tried it but no.  So I think I have to duplicate the ${srcs} collection and processing in mkmf.</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div></div><div><br></div><div> <span style="border-collapse:separate;border-spacing:0px 0px;color:rgb(0, 0, 0);font-family:Lucida Grande;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<div style="font-family:Helvetica"><span style="font-family:Helvetica">- Bert -</span></div><br></div></span> </div><br></div><br></blockquote></div><br>