<!-- MHonArc v2.4.4 --> <!--X-Subject: [MUD-Dev] Re: PDMud thread summary --> <!--X-From-R13: Quevf Uenl <ptNnzv-pt.UenlEntr.Sqzbagba.OP.QO> --> <!--X-Date: Fri, 23 Oct 1998 18:01:23 -0700 --> <!--X-Message-Id: 199810240055.SAA01720@ami-cg.GraySage.Edmonton.AB.CA --> <!--X-Content-Type: text/plain --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, [MUD-Dev] Re: PDMud thread summary</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA"> </head> <body background="/backgrounds/paperback.gif" bgcolor="#ffffff" text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000"> <font size="+4" color="#804040"> <strong><em>MUD-Dev<br>mailing list archive</em></strong> </font> <br> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00437.html">Previous</a> | <a href="msg00439.html">Next</a> ] Thread: [ <a href="msg00434.html">Previous</a> | <a href="msg00509.html">Next</a> ] Index: [ <A HREF="author.html#00438">Author</A> | <A HREF="#00438">Date</A> | <A HREF="thread.html#00438">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>[MUD-Dev] Re: PDMud thread summary</H1> <HR> <!--X-Subject-Header-End--> <!--X-Head-of-Message--> <UL> <LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI> <LI><em>Subject</em>: [MUD-Dev] Re: PDMud thread summary</LI> <LI><em>From</em>: Chris Gray <<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>></LI> <LI><em>Date</em>: Fri, 23 Oct 1998 18:55:03 -0600</LI> <LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> [Jon A. Lambert:] >I think Chris Gray mentioned fixing bytecode memory addresses >at startup, allowing direct jumps into functions. While a performance >boost, it makes dynamic registration and unregistration of modules >more complex. Yep. More complex, but not impossible. I guess my feeling is that module-unload events are fairly rare (module loading is pretty expensive, so you want to minimize them), so having to do a bit of work at that time, in order to save work throughout, may be a good trade-off. >Are function calls resolved at compile-time, registration, or run-time? Depends on what you mean by 'resolved'! Calls to visible names within a module should be resolved at compile time. Calls from one module to another that are fixed calls (not dependent on run-time data) can be resolved at registration (module load) time. Calls via pointers that MUD-code or module code can modify need to be at run-time. The comparative cost increases in that same sequence. >Having the return value, buys nothing either, since the caller may not use >it and wouldn't be able to build a proper mangled name. > >> int cast(int time, string spell) ----> #magic@cast!0x00000000$ri$ai$as >> char foo(char * bptr, bar i) ----> #magic@foo!0x1FBA2000$rc$apc$aebar > >int cast(int time, string spell) ----> #magic@cast$ai$as >char foo(char * bptr, bar i) ----> #magic@foo$apc$aebar ?? By dropping the result type you are forcing run-time type checking and a data representation that allows that. That sort of thing may be wanted for other reasons, but the module interface descriptions aren't a problem for it. I'm missing whatever you are getting at here. >For a standard call format, why not just have the caller push() it's address and then all the >arguments from left-to-right onto the stack then jump to the callee. The callee pops() them >out and loads local variables right-to-left. Return would pop() the return address off the >stack and push() the result and jump to the address just popped. Sure, that's fairly standard. The other thing you often want is for the return instruction to pop/deallocate any local variables as well. -- Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <ul compact><li><strong>Follow-Ups</strong>: <ul> <li><strong><A NAME="00509" HREF="msg00509.html">[MUD-Dev] Re: PDMud thread summary</A></strong> <ul compact><li><em>From:</em> "Jon A. Lambert" <jlsysinc#ix,netcom.com></li></ul> </UL></LI></UL> <!--X-Follow-Ups-End--> <!--X-References--> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00437.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00439.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00434.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00509.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00438"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00438"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> <ul><li>Thread context: <BLOCKQUOTE><UL> <LI><STRONG>[MUD-Dev] Re: PDMud thread summary</STRONG>, <EM>(continued)</EM> <ul compact> <LI><strong><A NAME="00398" HREF="msg00398.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Fri 23 Oct 1998, 15:05 GMT </LI> <LI><strong><A NAME="00433" HREF="msg00433.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, ApplePiMan <a href="mailto:ApplePiMan#aol,com">ApplePiMan#aol,com</a>, Fri 23 Oct 1998, 23:48 GMT <UL> <LI><strong><A NAME="00449" HREF="msg00449.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, Darrin Hyrup <a href="mailto:shades#mythicgames,com">shades#mythicgames,com</a>, Sat 24 Oct 1998, 04:10 GMT </LI> </UL> </LI> <LI><strong><A NAME="00434" HREF="msg00434.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, ApplePiMan <a href="mailto:ApplePiMan#aol,com">ApplePiMan#aol,com</a>, Sat 24 Oct 1998, 00:02 GMT </LI> <LI><strong><A NAME="00438" HREF="msg00438.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 24 Oct 1998, 01:01 GMT <UL> <LI><strong><A NAME="00509" HREF="msg00509.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 26 Oct 1998, 05:20 GMT <UL> <LI><strong><A NAME="00514" HREF="msg00514.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Mon 26 Oct 1998, 15:48 GMT <UL> <LI><strong><A NAME="00515" HREF="msg00515.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, Holly Sommer <a href="mailto:hsommer#micro,ti.com">hsommer#micro,ti.com</a>, Mon 26 Oct 1998, 16:08 GMT <UL> <LI><strong><A NAME="00516" HREF="msg00516.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, Jo Dillon <a href="mailto:emily#thelonious,new.ox.ac.uk">emily#thelonious,new.ox.ac.uk</a>, Mon 26 Oct 1998, 16:20 GMT </LI> </UL> </LI> </UL> </LI> </UL> </LI> </UL> </LI> </ul> </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>