PRB: Compiling C 5.1 Code with C 6.0 Can Cause Stack Overflow

ID Number: Q65311

5.10 6.00 6.00a 6.00ax | 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

SYMPTOMS

Microsoft C version 6.0 uses stack space differently than Microsoft

C version 5.1. Thus, programs that use most of the allocated stack

space under C 5.1 may cause a stack overflow when compiled with C

6.0.

RESOLUTION

This problem can be resolved by increasing the stack space by using

the /F compile option or the /ST linker option. The default stack

size allocated by the Microsoft C Compiler is 2048 bytes.

Additional reference words: 5.0 5.10 6.0 6.00 6.0a 6.00a 6.0ax 6.00ax