From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,38f665c587f5fad6,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!b40g2000prf.googlegroups.com!not-for-mail From: amado.alves@gmail.com Newsgroups: comp.lang.ada Subject: how to increase the size of stacks Date: Wed, 28 Nov 2007 12:08:44 -0800 (PST) Organization: http://groups.google.com Message-ID: <59b2b13a-2dfd-47d9-8319-45c332f25d4b@b40g2000prf.googlegroups.com> NNTP-Posting-Host: 212.13.49.167 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1196280524 5169 127.0.0.1 (28 Nov 2007 20:08:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 28 Nov 2007 20:08:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b40g2000prf.googlegroups.com; posting-host=212.13.49.167; posting-account=3cDqWgoAAAAZXc8D3pDqwa77IryJ2nnY User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 ebox-adsl.critical.pt:3128 (squid/2.5.STABLE13) Content-Disposition: inline Xref: g2news1.google.com comp.lang.ada:18664 Date: 2007-11-28T12:08:44-08:00 List-Id: 1. I want to increase the GNAT.Spitbol stack. This is a constant on "g- spipat.ads" How to I recompile this unit? Do I really need to go through all the steps in the Makefile.adalib (see below)? Compile the WHOLE lib? Just for a change in a single constant in a single unit? (I guess so.) Any easier way? 2. Does Gnatmake have an option to increase the stack size of the executable? Thanks a lot. # This Makefile requires Gnu make. # Here is how to use this Makefile # # 1. Create a new directory (say adalib) # e.g. $ mkdir adalib # $ cd adalib # # 2. Copy this Makefile from the standard Adalib directory, e.g. # $ cp /usr/local/gnat/lib/gcc-lib///adalib/ Makefile.adalib . # # 3. If needed (e.g for pragma Normalize_Scalars), create a gnat.adc # containing the configuration pragmas you want to use to build the library # e.g. $ echo pragma Normalize_Scalars; > gnat.adc # Note that this step is usually not needed, and most pragmas are not # relevant to the GNAT run time. # # 4. Determine the values of the following MACROS # ROOT (location of GNAT installation, e.g /usr/local/gnat) # and optionnally # CFLAGS (back end compilation flags such as -g -O2) # ADAFLAGS (front end compilation flags such as -gnatpgn) # *beware* the minimum value for this MACRO is -gnatpg # for proper compilation of the GNAT library # 5a. If you are using a native compile, call make # e.g. $ make -f Makefile.adalib ROOT=/usr/local/gnat CFLAGS="-g - O0" # # 5b. If you are using a cross compiler, you need to define two additional # MACROS: # CC (name of the cross compiler) # AR (name of the cross ar) # # e.g. $ make -f Makefile.adalib ROOT=/opt/gnu/gnat \ # CFLAGS="-O2 -g -I/usr/wind/target/h" CC=powerpc-wrs-vxworks-gcc \ # AR=arppc # # 6. put this new library on your Object PATH where you want to use it # in place of the original one. This can be achieved for instance by # updating the value of the environment variable ADA_OBJECTS_PATH