🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7883

Re: MS C Compiler bug

#7883
From: Jean-Luc Lachance
Date: Tue, 14 Nov 1995 16:19
36 lines
1579 bytes
In article <951109.191029.2O2.rnr.w164w@mmalt.guild.org> vic@mmalt.guild.org (Vic Kulikauskas) writes:
>Eric Prebys <prebys@puhep1.princeton.edu> writes:

>> We are compiling software on a 486 using the Microsoft C compiler,
>> version 7.0.  The following program
>>
>> =========================================================
>> int main(int, char **);
>>
>> int main(int argc, char **argv)
>> {
>> float aaabbb[2][500];
>> exit(0);
>> }
>> ==========================================================
>>
>> compiles, but causes the error
>>
>> R6000 - stack overflow
>>
>Your array uses about 4K of stack.  What stack size have you allocated?  
>The default value is 2K, or at least it is with MSC 6.0, so of course 
>you would get a stack overflow unless you changed the default.  You can 
>change the stack size by using the /F option to CL, or the /STACK option 
>to LINK.

Better yet, declare aaabbb as static.



--
Jean-Luc Lachance                   | jllachan@interLink.net
Action Telematique Inc              | (514)386-5396
5500, pl. de Jumonville, suite 312
Montreal, QC, CANADA
H1M 3L8
Technical Details
Message-ID: <jllachan.57.0010552C@interlink.net>
Path: arc1-ca.pugleaf.net!Rezonet.net!actiontel!jllachan
References: <47oaiq$b02@cnn.Princeton.EDU> <951109.191029.2O2.rnr.w164w@mmalt.guild.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!Rezonet.net!actiontel!jllachan
From: jllachan@interlink.net (Jean-Luc Lachance)
Newsgroups: comp.os.msdos.programmer,comp.lang.c
Subject: Re: MS C Compiler bug
Date: Tue, 14 Nov 1995 16:19:51
Message-ID: <jllachan.57.0010552C@interlink.net>
References: <47oaiq$b02@cnn.Princeton.EDU> <951109.191029.2O2.rnr.w164w@mmalt.guild.org>
NNTP-Posting-Host: g1298.258.interlink.net
X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]