I'm fooling arround with an array of a structure. If the array is given 2 elements, the program works as expected; but if I give it 200 elements, I get:
"Warning: local data size 766400 bytes in subroutine 'main' ". It doesn't run.
(If I pursue this propject, I will probably use linked lists.)
That means you've exceeded the allocated stack size, which is not a good idea to do. I wrote some functions for using linked lists, see here:
http://www.ionicwind.com/forums/index.php?topic=39.0
Once operator overloading is supported we can write a class that uses linked lists as if they were arrays.
Hey using linked lists like arrays sounds cool.
Lewis
And you can increase your stack size in the 'Advanced' tab of the executable options dialog.
Ive never once changed the default stack size. I im not sure what it does. I know that it is basicly how much memory is allocated to your application but appart from that...
Lewis
If you learn a little about assembly, you'll learn about the "stack" which stores local variables in subroutines, parameters, and can be used for other stuff. It has a limit though, which is set by the linker. Personally, I think if you have that much data in a subroutine, maybe it's time to think about some other types of structures though.
Hmm well ive not had that trouble so ive not had to look into it. Learning assembley code is something else i would like to look into when i have time.
I did a little at university, programming Z80 processors. Was fun until you made a mistake and you had to reset the whole thing. But i dont remember much of that, it was only a short course.
Lewis
I've started reading the ebook that Paul recommends, combined with random findings, and I'm learning a lot. It's really a good thing to know, especially if you're going to write a compiler eventually.