Hi

What is the default stack size for the main thread when I compile with CEGCC
x86? With MSVC I think it is 1MB. The reason I ask is that I have some tests
that seem to end because of a stack overflow. Danny, for example
tests/Bug_1890_Regression_Test.cpp. 

We allocate a fairly large object on the stack. I have tried
-Wl,--stack=0x8000000 (see below) but that doesn't resolve the crash. When I
allocate the object from the heap it does work without problems.

Johnny

i386-mingw32ce-g++ -Wpointer-arith -mthreads  -Wno-attributes -Wall -W -O3
-g -pipe    -pipe -DACE_HAS_CEGCC  -D_WIN32_WCE=0x600 -DUNICODE -D_UNICODE
-D_WINDOWS -DCEVER -DWIN32 -D_WINSOCKAPI_ -DACE_HAS_CUSTOM_EXPORT_MACROS=0
-I/home/build/ACE/cegcc/ACE_wrappers -DACE_HAS_EXCEPTIONS -DACE_NO_INLINE
-I.. -DACE_AS_STATIC_LIBS  -c  -o .obj/Bug_1890_Regression_Test.o
Bug_1890_Regression_Test.cpp
i386-mingw32ce-g++ -Wpointer-arith -mthreads  -Wno-attributes -Wall -W -O3
-g -pipe    -pipe -DACE_HAS_CEGCC  -D_WIN32_WCE=0x600 -DUNICODE -D_UNICODE
-D_WINDOWS -DCEVER -DWIN32 -D_WINSOCKAPI_ -DACE_HAS_CUSTOM_EXPORT_MACROS=0
-I/home/build/ACE/cegcc/ACE_wrappers -DACE_HAS_EXCEPTIONS -DACE_NO_INLINE
-I.. -DACE_AS_STATIC_LIBS  -Wl,--stack=0x8000000 -Wl,--enable-auto-import
-L/home/build/ACE/cegcc/ACE_wrappers/lib -static -L. -L../lib -o
Bug_1890_Regression_Test.exe .obj/Main.o .obj/Bug_1890_Regression_Test.o
-lTest_Output -lACE -lcoredll -lmingw32 -lmingwex -lws2 -lsupc++ -liphlpapi



------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to