⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 invvarargs.19970628.html

📁 this is a mirrored site c-faq. thought might need offline
💻 HTML
字号:
<html><!-- Mirrored from c-faq.com/varargs/invvarargs.19970628.html by HTTrack Website Copier/3.x [XR&CO'2008], Sat, 14 Mar 2009 08:03:12 GMT --><head><title>"inverse varargs problem", take 7</title></head><body>[This message was originally sent on June 28, 1997,when I was temporarily acting as a moderator for<a href="news:comp.lang.c.moderated">comp.lang.c.moderated</a>.It mentions, without going into too much detail,two more-recent ideas I've received on the subject.]<p>Subject: Re: Interpreter -- Calling functions<br>Date: Sat, 28 Jun 1997 10:44:03 -0700 (PDT)<br>Message-Id: &lt;199706281744.KAA07952@solutions.solon.com&gt;<br>X-scs-References: &lt;199612161422.OAA02621@goday.ac.upc.es&gt; &lt;9701171704.ZM25160@collie.hpl.hp.com&gt;<p>Besides the ideas I passed along in that other message, here aretwo I've received more recently from other netters.  FerminJavier Reig had a variation on the idea of using an interfacelike<p><pre><TT>	Push(arg1);	Push(arg2);	...	Call(func);</TT></pre><p>, although his idea ran into several problems of its own, andanyway it addresses the part of the problem that you've alreadysolved, so I won't say more about it here.  Jonathan Thompson hadthe idea of "creating a very large structure of <TT>char</TT>s", fillingin that structure with an image of the argument list (i.e. thestack frame) to be built, and then passing what looks like asingle argument, i.e. that one structure, to the called function,which could -- with luck -- interpret it as multiple arguments.I think this trick could be made to work on some machines,although I haven't experimented with it yet, and it obviouslyassumes a pure stack calling model, i.e. it wouldn't work at allon a register-passing machine.<p><address><a href="http://www.eskimo.com/~scs/">Steve Summit</a><br><a href="news:comp.lang.c.moderated">comp.lang.c.moderated</a> co-moderator<br><a href="mailto:scs@eskimo.com">scs@eskimo.com</a></address></body><!-- Mirrored from c-faq.com/varargs/invvarargs.19970628.html by HTTrack Website Copier/3.x [XR&CO'2008], Sat, 14 Mar 2009 08:03:12 GMT --></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -