alloca(), #if, and other controversial things...

Network News news at amdcad.AMD.COM
Thu Aug 25 02:38:22 AEST 1988


In article <5281 at killer.DALLAS.TX.US> chasm at killer.DALLAS.TX.US (Charles Marslett) writes:
| So recursive routines used two stacks, non-
| recursive ones used one and in no case were automatic variables actually
| used on the stack.
| 
| I might also ask, "Do sliding frame RISC machines have any C compilers that
| work similarly?"  Or do they shuffle the frame to and from the memory stack
| without reference to structure?

The Am29000 calling convention uses two stacks -- the memory stack and
the register stack.  Local scalar variables, return addresses, and the
first 16 words of parameters are stored on the register stack, the top
of which is cached on chip in the register file.  Non-scalar (large
arrays & structs) data is stored on the memory stack. 

	-- Tim Olson
	Advanced Micro Devices
	(tim at delirun.amd.com)



More information about the Comp.lang.c mailing list