C stack frame sizes

grunwald at uiucdcsb.UUCP grunwald at uiucdcsb.UUCP
Sun Dec 2 10:04:00 AEST 1984


/* Written  9:27 pm  Nov 30, 1984 by malcolm at ecn-ee in uiucdcsb:net.lang.c */
...

I wonder what this type of programming style would do to a Berkeley style
RISC machine?

								Malcolm
/* End of text from uiucdcsb:net.lang.c */

On the pryamid, which is essentially a Berkeley style RISC machine, the
array would be stored in real memory, not registers. Same goes for structs
and (I think) unions.
   They only keep the "normal stuff" in registers. So, if you defined:

	int *i, j[1000], *k;

both "i" and "k" would be in registers and j would be in memory.



More information about the Comp.lang.c mailing list