c++.dos.16-bits - malloc() question
- Robert Riebisch (4/4) Sep 18 2006 'size_t' is defined as 'unsigned' in, e.g., stdlib.h, but is it impossib...
- Walter Bright (2/7) Sep 20 2006 Which function did you find that in? _nmalloc?
- Robert Riebisch (4/5) Sep 21 2006 Probably. ;-) I didn't debug the RTL, but the generated test
- Robert Riebisch (2/5) Oct 04 2006 Um, still waiting... :-(
'size_t' is defined as 'unsigned' in, e.g., stdlib.h, but is it impossible to allocate more than 32,764 bytes at once? I found a JGE instruction in malloc's code, but why do you a signed comparison?
Sep 18 2006
Robert Riebisch wrote:'size_t' is defined as 'unsigned' in, e.g., stdlib.h, but is it impossible to allocate more than 32,764 bytes at once? I found a JGE instruction in malloc's code, but why do you a signed comparison?Which function did you find that in? _nmalloc?
Sep 20 2006
Walter Bright wrote:Which function did you find that in? _nmalloc?Probably. ;-) I didn't debug the RTL, but the generated test executable. I use the small memory model (option '-ms') and the instruction was 'call near ptr _malloc'. Hope, this helps!
Sep 21 2006
Robert Riebisch wrote:Probably. ;-) I didn't debug the RTL, but the generated test executable. I use the small memory model (option '-ms') and the instruction was 'call near ptr _malloc'. Hope, this helps!Um, still waiting... :-(
Oct 04 2006