From: Bjorn De Meyer Newsgroups: comp.os.msdos.djgpp Subject: Re: limits functions Date: Tue, 24 Nov 1998 16:05:57 +0100 Organization: University of Ghent, Belgium Lines: 38 Message-ID: References: NNTP-Posting-Host: eduserv2.rug.ac.be Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sun, 22 Nov 1998, Eli Zaretskii wrote: > > On Thu, 19 Nov 1998, William Joseph Giraldo Orozco wrote: > > > Yes, but i want to have my executive in a library, and the funtions of the > > process are custom. Its functions are writen by user of my executive. > > Then i want that my library (executive) to calculate its limits. > > As far as I know, this is impossible to do in C. There's no > provision in C to compute the size of a function's code. I tend to disagree. I think you need to completely change the approach of the problem. A function parser could do the trick here, I think (though it's not so easy to program.) Just let the parser transform user functions into some internal representation and use that to do your calulations. Fractint does it for creating userdefined fractals, IFS'es and L-systems, and that was written in C. > > Bjorn De Meyer. IA #i^4 Homepage: http://studwww.rug.ac.be/~bgdmeyer E-mail: bjorn DOT demeyer AT rug DOT ac DOT be Licentiate Chemistry. Coordinator of the "Tales of Artah: First Sword" CRPG project. "I've shaven. I'm happy. I have no religion. Don't pray for me." Illusion of Gaia 2