Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!munnari.oz.au!mel.dit.csiro.au!yarra!bacchus!david From: david@bacchus.esa.oz.au (David Burren [Athos]) Newsgroups: comp.os.coherent Subject: Re: compiler bug Message-ID: <2606@bacchus.esa.oz.au> Date: 5 May 91 06:16:09 GMT References: <1991Apr25.183957.11195@Arco.COM> <1991Apr26.031408.23686@mendelson.com> Organization: Expert Solutions Australia Lines: 21 I couldn't resist this: In <1991Apr26.031408.23686@mendelson.com> gsm@mendelson.com (Geoffrey S. Mendelson) writes: >main() >{ > int dummy; > int *big_array[16484] /* allocates no space at all */ BZZZT. It allocates space for an array of 16484 pointers to ints. Btw, didn't you mean 16384? A #define would avoid that problem. I think what you meant to use was something like: int *big_array; > big_array = malloc(16384*sizeof(dummy)); /*Try and get it from the stack */ >} _____________________________________________________________________________ David Burren [Athos] Email: david@bacchus.esa.oz.au Software Development Engineer Phone: +61 3 819 4554 Expert Solutions Australia, Hawthorn, VIC Fax: +61 3 819 5580