Passing Arguments In C
Mark A. Charette
charette at edsews.EDS.COM
Mon Sep 19 03:51:04 AEST 1988
One small point - assuming a conventional stack arrangement for passing
values to a function is not ALWAYS correct. I did a (very) little bit
of programming in the 'B' language supplied on a Honeywell 6060 Level 66
a few years back. (I couldn't do too much with it - the on-line manual
wasn't complete. I think the language was supplied by the University of
Waterloo. It was probably an accident that we had it at all.) Anyway,
the "stack" was an area of memory set aside for parameter passing, set
up as a circular queue. The post-mortem debugger supplied with the language
could read the queue and trace the program back with all of the values
passed to the functions intact (until the queue wrapped).
It was valuable (to me) since I could look at the history of the program
and values.
--
Mark Charette "Unmitigated seriousness is always out of
Electronic Data Systems place in human affairs." - G. Santayana
750 Tower Drive Voice: (313)265-7006
Troy, MI 48007-7019 charette at edsews.eds.com uunet!edsews!charette
More information about the Comp.lang.c
mailing list