Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-01

heap and stack size

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Carl Eric Codere
This is extremely good news. Let me ask (to be certain I understand), can the stack effectively grow the the limit of memory? Or will there be an artificial ceiling?

Greetings,
With stack checking on, you can simulate a maximum limit which can be used before the program gives a RunError 202, for the stack size, for BeOS and DOS, contrary to what Jonas said, is limited to 256Kb. For AmigaOS, stack size is limited to 32K (this can be changed in the OS). This is indicated in the FAQ

Carl

Sasu Purola

Could you make lha archive of your current fpc amiga version and place it somewhe in net as I didn't succeed to crosscompile my own.

Sasu

Earlier message 22 lines
-----Original Message----- From: Carl Eric Codere Sent: 8. tammikuuta 2003 10:34 To: Subject: [fpc-pascal]heap and stack size > This is extremely good news. Let me ask (to be certain I understand), > can the stack effectively grow the the limit of memory? Or will there > be an artificial ceiling? Greetings, With stack checking on, you can simulate a maximum limit which can be used before the program gives a RunError 202, for the stack size, for BeOS and DOS, contrary to what Jonas said, is limited to 256Kb. For AmigaOS, stack size is limited to 32K (this can be changed in the OS). This is indicated in the FAQ Carl
Mark Emerson
to Carl Eric Codere: With stack checking on, you can simulate a maximum limit which can be used before the…
Carl Eric Codere wrote 13 lines
> This is extremely good news. Let me ask (to be certain I understand), > can the stack effectively grow the the limit of memory? Or will there > be an artificial ceiling? Greetings, With stack checking on, you can simulate a maximum limit which can be used before the program gives a RunError 202, for the stack size, for BeOS and DOS, contrary to what Jonas said, is limited to 256Kb. For AmigaOS, stack size is limited to 32K (this can be changed in the OS). This is indicated in the FAQ Carl

Well...yesterday we had a stack overflow running in a DOS window under Windows 98 on a machine with 64Mb of RAM. We used {$M....} to solve the problem. We also played with {$M....} and discovered that our program would work with a stack of 1Mb, but crash at 100Kb...so it makes sense that the default is 256Kb.

Mark