delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/15/10:31:32

From: pavenis AT lanet DOT lv
To: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>, djgpp-workers AT delorie DOT com
Date: Fri, 15 Jun 2001 17:31:16 +0300
MIME-Version: 1.0
Subject: Re: [PATCH] Update to stubedit and stubify
Message-ID: <3B2A4664.1286.2B0BCD@localhost>
In-reply-to: <7999-Fri15Jun2001170807+0300-eliz@is.elta.co.il>
References: <3B2A2502 DOT 972 DOT C46699 AT localhost> (pavenis AT lanet DOT lv)
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 15 Jun 2001, at 17:08, Eli Zaretskii wrote:

> > From: pavenis AT lanet DOT lv
> > Date: Fri, 15 Jun 2001 15:08:50 +0300
> > 
> > Initial reason for that was wish to be able to specify stack size in
> > gcc command line with option -stack=...  .
> 
> Is this option supported by GCC?  If not, why did you think it is
> reqiured?  I don't think I've heard about any stack-related problems
> in months, if not in years.
> 
> Not that I'm against adding such an option.

Why: simply I think it's better way how to specify stack size rather than 
separate stubeditting executable (I can add corresponding
option to LDFLAGS without need to add some else DJGPP related
stuff to Makefile).

I also haven't seen many such examples where such option should be needed. Earlier I 
stubeditted part of gcc-2.95.X binaries to have 1.5Mb stack. My current binaries of gcc-3.0 
prerelease have the default stack
size and I havent't run into trouble

One example where I met need for similar options was running tests of GSL-0.7 (GNU 
Scientific library) rather long time ago (one example required about 1.5Mb stack size). 
Haven't tried with GSL-0.8 yet.

Andris

PS. Here is output I got from one test compilation. As You can see this
      option doesn't go anywhere else (not that I have patched stubedit
	to have option -x to force replacing extension with .exe)

Command: gcc -v -O2 x.cc -stack=1024k -lstdcxx -o x.exe 

Reading specs from C:/DJGPP/BIN2/../lib/gcc-lib/djgpp/3.0/specs
Configured with: ../gcc/configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --enable-
languages=c,c++,f77,objc --disable-nls
Thread model: single
gcc version 3.0 20010610 (prerelease)
-Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -
D__tune_pentium__ -DMSDOS -DGO32 -imacros C:/DJGPP/BIN2/../lib/gcc-
lib/djgpp/3.0/djgpp.ver x.cc -D__GNUG__=3 -D__GXX_DEPRECATED -
D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase x.cc -O2 -version -o 
E:/TMP\ccI3PM4e.s
GNU CPP version 3.0 20010610 (prerelease) (cpplib) (80386, BSD syntax)
GNU C++ version 3.0 20010610 (prerelease) (djgpp)
	compiled by GNU C version 3.0 20010610 (prerelease).
#include "..." search starts here:
#include <...> search starts here:
 C:/DJGPP/lang/cxx-v3
 C:/DJGPP/lang/cxx-v3/djgpp
 C:/DJGPP/lang/cxx-v3/backward
 C:/DJGPP/lib/gcc-lib/djgpp/3.0/include
 C:/DJGPP/djgpp/include
 c:/djgpp/lang/cxx-v3
 c:/djgpp/lang/cxx-v3/djgpp
 c:/djgpp/lang/cxx-v3/backward
 c:/djgpp/lib/gcc-lib/djgpp/3.0/include
 c:/djgpp/djgpp/include
 c:/djgpp/include
End of search list.
 c:/djgpp/bin/as.exe --traditional-format -o E:/TMP\ccIjT9us.o E:/TMP\ccI3PM4e.s
/../../.. E:/TMP\ccIjT9us.o -lstdcxx -lgcc -lc -lgcc -Tdjgpp.djl
 c:/djgpp/bin/stubify.exe -v x.exe
stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie
stubify: x.exe -> x.000 -> x.exe
 c:/djgpp/bin/stubedit.exe -x x.exe minstack=1024k

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019