mpin and function length
alan dare
alan at hal.larc.nasa.gov
Thu Jun 20 03:24:30 AEST 1991
Irix'ers,
I have been looking at some of the "REACT" features and the demo
program in section 14 volume II of the Iris-4D Programmers Guide. The program
pins the signal handler into memory. Seems like a good idea. To find the
length of the signal handling function the following is done during pinning:
mpin((char *)catcher, (int)pinmem - (int)catcher);
In the source code pinmem() is directly after catcher(). Thus, the
size of the function is found. I would like to pin my signal handler in
memory, but I have some questions about finding the function length. If i'm
using O3 optimization or a Power compiler I think the locations of the
functions could be changed (Correct ?). The problem could also arise if
an engineer after me mods the program and changes the function location.
I would like to find another solution to dynamicly determine the function
length, but I don't know how.
If I am off base here, please tell me what i'm missing. If not, anyone
have any good ideas?
Thanks
--
*********************************************************************
Alan Dare | Internet : alan at hal.larc.nasa.gov
NASA Langley Research Center |
More information about the Comp.sys.sgi
mailing list