Re: change to gcc from lcc

2008-11-20 Thread Daniel Berlin
On Thu, Nov 20, 2008 at 9:28 PM, Alexey Salmin <[EMAIL PROTECTED]> wrote: > 2008/11/20 Michael Matz <[EMAIL PROTECTED]>: >> Hi, >> >> On Wed, 19 Nov 2008, H.J. Lu wrote: >> >>> On Wed, Nov 19, 2008 at 7:18 PM, Nicholas Nethercote >>> <[EMAIL PROTECTED]> wrote: >>> > On Tue, 18 Nov 2008, H.J. Lu wro

Re: change to gcc from lcc

2008-11-20 Thread Alexey Salmin
2008/11/20 Michael Matz <[EMAIL PROTECTED]>: > Hi, > > On Wed, 19 Nov 2008, H.J. Lu wrote: > >> On Wed, Nov 19, 2008 at 7:18 PM, Nicholas Nethercote >> <[EMAIL PROTECTED]> wrote: >> > On Tue, 18 Nov 2008, H.J. Lu wrote: >> > >> >>> I used malloc to create my arrays instead of creating the in the st

Re: change to gcc from lcc

2008-11-20 Thread Michael Matz
Hi, On Wed, 19 Nov 2008, H.J. Lu wrote: > On Wed, Nov 19, 2008 at 7:18 PM, Nicholas Nethercote > <[EMAIL PROTECTED]> wrote: > > On Tue, 18 Nov 2008, H.J. Lu wrote: > > > >>> I used malloc to create my arrays instead of creating the in the stack. > >>> My program is working now but it is very slow

Re: change to gcc from lcc

2008-11-19 Thread H.J. Lu
On Wed, Nov 19, 2008 at 7:18 PM, Nicholas Nethercote <[EMAIL PROTECTED]> wrote: > On Tue, 18 Nov 2008, H.J. Lu wrote: > >>> I used malloc to create my arrays instead of creating the in the stack. >>> My program is working now but it is very slow. >>> >>> I use two-dimensional arrays. The way I acce

Re: change to gcc from lcc

2008-11-19 Thread Nicholas Nethercote
On Tue, 18 Nov 2008, H.J. Lu wrote: I used malloc to create my arrays instead of creating the in the stack. My program is working now but it is very slow. I use two-dimensional arrays. The way I access element (i,j) is: array_name[i*row_length+j] The server that I use has 16GB ram. The ulimit

Re: change to gcc from lcc

2008-11-18 Thread H.J. Lu
On Tue, Nov 18, 2008 at 6:08 PM, Anna Sidera <[EMAIL PROTECTED]> wrote: > Hello, thank you everybody for your help. > > I used malloc to create my arrays instead of creating the in the stack. My > program is working now but it is very slow. > > I use two-dimensional arrays. The way I access elemen

Re: change to gcc from lcc

2008-11-18 Thread Robert Dewar
Anna Sidera wrote: Hello, thank you everybody for your help. I used malloc to create my arrays instead of creating the in the stack. My program is working now but it is very slow. I use two-dimensional arrays. The way I access element (i,j) is: array_name[i*row_length+j] The server that I use

Re: change to gcc from lcc

2008-11-18 Thread Anna Sidera
program? Anna - Original Message - From: "Anandkumar, CB IN BLR SISL" <[EMAIL PROTECTED]> Date: Friday, November 14, 2008 8:53 am Subject: RE: RE: change to gcc from lcc > Hi Anna, > On debugging your code I found that it is problem with the local > memory b

Re: change to gcc from lcc

2008-11-14 Thread Ian Lance Taylor
Anna Sidera <[EMAIL PROTECTED]> writes: > The following code works in lcc in windows but it does not work in > gcc in unix. I think it is memory problem. In lcc there is an option > to use more temporary memory than the default. Is there something > similar in gcc? In gcc, no. But if you are usi

Re: change to gcc from lcc

2008-11-14 Thread Paul Brook
> > the code you provided tries to allocate a huge chunk of memory on the > > stack. > Interesting. At least. There should be a warning from gcc. The limit is nothing to do with GCC. It is an OS setting (ulimit -s). Paul

Re: change to gcc from lcc

2008-11-14 Thread Eric Fisher
Interesting. At least. There should be a warning from gcc. Eric 2008/11/14 Tim München <[EMAIL PROTECTED]>: > On Friday 14 November 2008 10:09:22 Anna Sidera wrote: >> Hello, >> >> The following code works in lcc in windows but it does not work in gcc in >> unix. I think it is memory problem. In

Re: change to gcc from lcc

2008-11-14 Thread Tim München
On Friday 14 November 2008 10:09:22 Anna Sidera wrote: > Hello, > > The following code works in lcc in windows but it does not work in gcc in > unix. I think it is memory problem. In lcc there is an option to use more > temporary memory than the default. Is there something similar in gcc? > > #incl

change to gcc from lcc

2008-11-14 Thread Anna Sidera
Hello, The following code works in lcc in windows but it does not work in gcc in unix. I think it is memory problem. In lcc there is an option to use more temporary memory than the default. Is there something similar in gcc? #include #include #include #include int main() { int i, j; int buf