<div dir="ltr">Tim,<div><br></div><div>    the way I&#39;d test it is a) look at the preprocessed output via -E to check that the attributes were included in the souerce, and b) I&#39;d open the executable in gdb, disassemble  some of the funcitons with the attribute that take arguments and look at the disassembly to verify that the functions take their arguments from the stack and not from registers.  I might then try and run the VM under gdb, put a breakpoint some where in the VM (or just interrupt it after it ran for a while) and then try and call one of the funcitons in a suitable state.  Of course getting the VM to a suitable state and knowing which function to call is not trivial.  So better is probably looking at the disassembly between an Assert compile (-O1) with the attributes and an Assert compile without the attributes.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 31, 2015 at 5:09 AM, gettimothy <span dir="ltr">&lt;<a href="mailto:gettimothy@zoho.com" target="_blank">gettimothy@zoho.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><u></u><div><div style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif"><div>@Tim<br></div><div><br></div><div>Is there a way to test the &#39;fix&#39; I emailed about several weeks ago where I wrote putting the empty #define NoDbgRegParms  in <a href="http://config.h.in" target="_blank">config.h.in</a> &quot;fixes&quot; the problem?</div><div><br></div><div>Running the cog --version command shows an Assert VM, but I wonder if that is just an artefact and what is really there is a production VM and the __attribute__((regparm(0)))__ functiona attributes where never put in place.</div><div><br></div><div><br></div><div>gdb?</div><div>something else?</div><div><br></div><div>thx.</div><div><br></div><div>tty</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">best,<div>Eliot</div></div>
</div>