Path: utzoo!attcan!uunet!cbmvax!cbmehq!cbmdeo!lenler!moria!bojsen From: bojsen@moria.UUCP (Per Bojsen) Newsgroups: comp.sys.amiga.programmer Subject: AmigaGCC stack hogging Message-ID: <1882f287.ARN1979@moria.UUCP> Date: 12 Jan 91 14:55:51 GMT Reply-To: bojsen@lenler.UUCP Followup-To: comp.sys.amiga.programmer Organization: IDUN-Soft Aps. Lines: 19 This is a question to the people who ported GCC to the Amiga. I don't know if it has been discussed before, but here you are: What is the precise reason for the large stack needs of GCC? Is it the alloca() call? If this is the case, have you considered using the PD alloca() by D.A. Gwyn, which comes with (Amiga) `gnused'? This implementation of alloca() uses malloc() to allocate memory from the heap instead of on the stack. Since the Amiga does not grow stacks automatically at the moment it is better to allocate from the heap. Another question regarding GCC: is the source for the Amiga port available? -- .------------------------------------------------------------------------------. | Greetings from Per Bojsen. | +-------------------------------+----------------------------------------------+ | EMail: cbmehq!lenler!bojsen |"Zen is a feeling. It's the feeling you get | | Or: bojsen@dc.dth.dk | when you know you're going to get a feeling."| `-------------------------------+----------------------------------------------'