Welcome, Guest. Please login or register.

Author Topic: Which C Compiler?  (Read 3185 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show all replies
Re: Which C Compiler?
« on: March 12, 2005, 01:38:35 PM »
For any serious work you will need a slightly expanded system to compile any moderate sized program.

At the very least I'd reccomend a hard disk, and an accelerator of some kind, prefereably with a fair chunk of memory.


Regardinng your char
  • problem, it depends where you put it.


char x[1024];

main()
{

}

Here the array is a global entity that is allocated on the free store when the code is loaded.

main()
{
char x[1024];
}

Here the array is an automatic entity that is allocated on the stack when main() is entered.

If you allocate large arrays in this style, you'll quickly overflow your stack.
int p; // A