On Thu, Dec 18, 2025 at 09:54:47AM -0800, Ben Collver wrote: > I added -k8192 to the linker options in mkbcc.bat to increase the stack > size so that BCC can compile larger programs. > > I posted the new build to: > > <gopher://tilde.pink/9/~bencollver/files/dos/devel/bcc/bcc_pt4.zip>
Today i found that the pre-processor doesn't check malloc() return values. It silently dereferences NULL pointers when it runs out of memory, which happens while compiling vfscanf.o from scanf.c. Somehow the compiler doesn't crash and it still manages to compile the C library. In other words, it accidentally succeeds. As far as i can tell, BCC 0.16.21 needs more than just conventional memory to compile its own C library! The compiler in bcc_pt4.zip is not to be trusted. I guess i'm going back to the drawing board... _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
