This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: change to gcc from lcc
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Anna Sidera" <eep6sa1 at ucy dot ac dot cy>
- Cc: "Anandkumar, CB IN BLR SISL" <anand dot cb at siemens dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 18 Nov 2008 20:53:09 -0800
- Subject: Re: change to gcc from lcc
- References: <f6ac8affe39e.491b84c0@ucy.ac.cy> <4847DBE579D78B4A9C610E2EA77B4634232B5F0D@inblrk999msx.in002.siemens.net> <f62cc58ec33d.491d1a61@ucy.ac.cy> <4847DBE579D78B4A9C610E2EA77B463423356526@inblrk999msx.in002.siemens.net> <f633d037d831.49239157@ucy.ac.cy>
On Tue, Nov 18, 2008 at 6:08 PM, Anna Sidera <eep6sa1@ucy.ac.cy> 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 has 16GB ram. The ulimit -a command gives the following output:
> time(seconds) unlimited
> file(blocks) unlimited
> data(kbytes) unlimited
> stack(kbytes) 8192
^^^^^^^^^^^^^^^^^^^^^^^^
That limits stack to 8MB. Please change it to 1GB.
> coredump(blocks) unlimited
> nofiles(descriptors) 256
> vmemory(kbytes) unlimited
>
> Do you have any suggestions to speed up my program?
>
--
H.J.