home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!spsgate!mogate!newsgate!192.5.251.3!abair
- From: abair@parsons.sps.mot.com (Alan Bair)
- Subject: Setting stack for shell icon (Was gcc2.2.2 error)
- In-Reply-To: djkucera@undergrad.math.waterloo.edu's message of Mon, 7 Sep 1992 22:53:25 GMT
- Message-ID: <ABAIR.92Sep9004119@parsons.sps.mot.com>
- Sender: usenet@newsgate.sps.mot.com
- Nntp-Posting-Host: 223.12.249.122
- Organization: AMCU, Motorola Inc., Austin, Texas.
- References: <Bu8Cx2.D7v@undergrad.math.waterloo.edu>
- Date: Wed, 9 Sep 1992 07:41:19 GMT
- Lines: 40
-
- In article <Bu8Cx2.D7v@undergrad.math.waterloo.edu> djkucera@undergrad.math.waterloo.edu (Dylan Kucera) writes:
-
- Yesterday I posted an article explaining a problem I was having applying
- the patches to GCC. The problem was as a result of an erroneous assumption
- on my part.
-
- I had the line "STACK 250000" in my User-Startup thinking that the STACK
- command was system wide. WRONG. Looked it up in the 2.04 AmigaDos manual,
- and it sets it ONLY FOR THE CURRENT SHELL!
-
- So, here's how to, in brief, make an icon for a shell with stack 250000
- (I Think the author should add this to the documentation...)
-
- - copy your shell icon to gcc_programming_shell
- - edit the information for the new icon and make the tool type "iconx"
- - use a text editor to edit 'gcc_programming_shell' in the same dir as
- the icon.
- - insert the line "NewShell FROM s:programming.startup"
- - copy s:shell-startup s:programming.startup
- - use a text editor to edit s:programming.startup
- - add the line "stack 250000" just before the end.
-
- Viola, ICON that starts a shell with the stack already set to 250000. This way
- you can use this memory eating shell only when you want to use GCC stuff,
- otherwise use the measly 4000 byte shell.
-
- Thanks to all who mail with their concern, it made me think twice as to whether
- or not what I had done was correct!
-
- DK.
-
- It seems like it would be easier to just copy the shell icon and change the
- stack value from 4000 to 250000 as shown by "Ramiga-i". I tried this and the
- stack size just stayed at 4000. Anyone care to explain this behavior?
- --
- Alan Bair AMCU DSCS
- Motorola, Inc. (Design Software &
- Mail Stop OE-320 Computer Services)
- 6501 William Cannon Dr. West
- Austin, TX 78735-8598 abair@parsons.sps.mot.com
-