home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13201 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.3 KB  |  54 lines

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