gcc with no stack at all?

Jeff Garzik jgarzik@mandrakesoft.com
Thu Mar 30 17:11:00 GMT 2000


For low-level BIOS type code, some portions of early chipset init must
run without a stack.

Is it possible to write gcc-compilable C code which doesn't require a
stack at all?

I don't see any '-fno-stack' option in gcc.info*, but I was wondering if
it could be done implicitly, for example '-fno-builtin' plus no local
vars plus an all-register calling convention.

Thanks for any insight.

	Jeff




-- 
Jeff Garzik              | Tact is the ability to tell a man 
Building 1024            | he has an open mind when he has a
MandrakeSoft, Inc.       | hole in his head.  (-random fortune)


More information about the Gcc mailing list