🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4893

Re: Symbol address in Turbo C

#4893
From: Doug Dougherty
Date: Tue, 26 Feb 1991 15:39
17 lines
1267 bytes
barber@equinox.unr.edu writes:


>	I'm attempting to write a program which produces a report based on 
>a form definition file.  The form definition file will contain two types of 
>information: 1) straight text to be copied to the report verbatium (sp),
>and 2) macros, which will be a name of a function located inside my 
>program.  
>	The problem I'm having is finding a way to call a function given
>a string representation of it's name.  So for example, if my program read
>the following from the form definition file:
>	@fn_doit
>it would call the function fn_doit.  I thought of building a local symbol
>table of functions callable from a form definition macro.  The symbol table

I don't think there's any "straight" way to do this.  You could read the .MAP
file created by the linker in at runtime, then lookup the addresses there.
Technical Details
Message-ID: <valley.667582769@gsbsun>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!midway!valley
References: <5626@tahoe.unr.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!midway!valley
From: valley@uchicago (Doug Dougherty)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Symbol address in Turbo C
Message-ID: <valley.667582769@gsbsun>
Date: 26 Feb 91 15:39:29 GMT
References: <5626@tahoe.unr.edu>
Sender: news@midway.uchicago.edu (News Administrator)
Organization: University of Chicago
Lines: 17