C Compiler for CFD Programmes
Dear all,
I am using code blocks for smaller level c programs to solve CFD problems. but its time to move on. The problem with Code Blocks is that it can't handle large matrix(its not using more than 200MB of RAM in my system, Even though i have 4GB of RAM). Is there any other Compliers, software or options that uses maximum RAM memory to run such programs. Please help me out of this. Thank you. |
Quote:
If a C program cannot allocate enough memory it will either write out an error message and stop or it will crash. Which is your program doing? |
I am using default compiler in Windows 8. It detected as gcc compiler. Which compiler should I use?
By the way it crashes(i.e., Programm stops working). What should i do? Please advice. |
Quote:
The maximum address for 32 bits is 4GB but I think on Windows you would need to knock off memory for the graphics card and a few other bits and bobs. I would suggest allocating 1GB and seeing if that works then 2GB and seeing if that works, etc... gcc is not the native Windows C compiler but it is unlikely to be the cause of restrictions on allocated memory. You are allocating memory on the heap with malloc? You are checking the returned pointer? If there is insufficient memory the pointer should be null. |
Quote:
You can use that gcc inside a DOS terminal without using the code block. |
All times are GMT -4. The time now is 09:35. |