For Programmers: Free Programming Magazines  


Home > Archive > Fortran > March 2007 > Re: Is C faster than fortran?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Is C faster than fortran?
user923005

2007-03-30, 7:04 pm

On Mar 30, 6:23 am, "Arjen Markus" <arjen.mar...@wldelft.nl> wrote:
> On 30 mrt, 09:51, "Arjen Markus" <arjen.mar...@wldelft.nl> wrote:
>
>
>
>
>
>
> I tried this on a Windows XP machine too, but the Intel Fortran
> compiler version terminated in case 3 with a stack overflow.
> I did specify a stack of 16 million bytes (via the /F option),
> but that did not work. Should I use an even larger stack?


If I recall correctly, the arrays are about 20 MB.
I am kind of surprised that they are formulated as automatic
variables.
In the C version, they are allocated using malloc(), so they do not
exhaust automatic storage.
Hence the C version does not need excessive stack requirements.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com