search for: stack_grows_up

Displaying 1 result from an estimated 1 matches for "stack_grows_up".

2003 Jan 14
1
myths about upwards growing stacks
just downloaded klibc 0.72 and took a look. first thing i found was that the URL for latest version is out of date: klibc is archived at: ftp://ftp.zytor.com/pub/linux/libs/klibc/ the `libs/' is superfluous. more importantly, this piece of code in klibc/arch/README is wrong: #if STACK_GROWS_UP argc = (int)*argptr--; argv = (char **)argptr; envp = argv-(argc+1); #else argc = (int)*argptr++; argv = (char **)argptr; envp = argv+(argc+1); #endif i'm not sure why people think that having an upwards-growing stack means that argc, argv & envp all change places, but they don...