Why do these lines at the pawn compiler? -
Lunoxel - 25.08.2015
Hi, I recently following lines appear in the console pawn compiler, do not appear before than the first. What do these extra lines?
If there is a problem?
Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 11976 bytes
Code size: 726768 bytes
Data size: 7880192 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4069 cells (16276 bytes)
Total requirements: 8635320 bytes
================ READY ================
Re: Why do these lines at the pawn compiler? -
ahameed4755 - 25.08.2015
its not a error or something it happens to me too. i just installed windows and i got the same thing i thought its a error but its not.
so keep calm and use pawno
Re: Why do these lines at the pawn compiler? -
Tamer - 25.08.2015
https://sampforum.blast.hk/showthread.php?tid=542761
It happens if you compile with -d3 or if your script becomes complex.
It's not something to worry about.
Re: Why do these lines at the pawn compiler? -
Lunoxel - 25.08.2015
I pawn.cfg, that appeared suddenly before 2:00 does occur, code do not think that's too big, not amended, now 2 hours does not appear, without changing it now appears.
Re: Why do these lines at the pawn compiler? -
Tamer - 25.08.2015
Quote:
Originally Posted by Lunoxel
I pawn.cfg, that appeared suddenly before 2:00 does occur, code do not think that's too big, not amended, now 2 hours does not appear, without changing it now appears.
|
Pretty much it is not important whether is appears or not, it is not an error, its not a warning, It's just debug.
Re: Why do these lines at the pawn compiler? -
Roberto80 - 25.08.2015
Just use this to hide them:
#pragma dynamic 10000000
Re: Why do these lines at the pawn compiler? -
LetsOWN[PL] - 25.08.2015
Quote:
Originally Posted by Roberto80
Just use this to hide them:
#pragma dynamic 10000000
|
40mb of heap and stack?
Quote:
Originally Posted by Lunoxel
Hi, I recently following lines appear in the console pawn compiler, do not appear before than the first. What do these extra lines?
If there is a problem?
Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 11976 bytes
Code size: 726768 bytes
Data size: 7880192 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4069 cells (16276 bytes)
Total requirements: 8635320 bytes
================ READY ================
|
If You don't use -d3 parameter with Your compiler, then see if You're using some variables, that uses loads of memory (useless).
For example, if You'd like to format variable with 100 characters-long string using 512-1024 cells for it, and You keep on doing this, then it's obviously, You'll receive such messages.
Greetings
Re: Why do these lines at the pawn compiler? -
Vince - 25.08.2015
Quote:
Originally Posted by Tamer
|
If it's shows up without either the -d3 or -v flag being applied then it is most definitely something to worry about because that means more stack is being used than is available which will result in data corruption, weird glitches and/or server crashes.
Re: Why do these lines at the pawn compiler? -
prineside - 25.08.2015
In your case compiler says "your stack/heap size is 16384 bytes, and your code may use 16276 bytes of heap/stack". It appears when stack/heap usage of your mod is higher or close to limit. Sometimes it may say "unknown, due to recursion".
You may search how amx machine works or I can tell you something I know about it.
I'd suggest you to set a bigger stack/heap size with #pragma dynamic n (where n is size in cells, and 1 cell = 4 bytes). Default value is 4096 cells, which is 16384 bytes (so as compiler said).
You may also look how to lower stack and heap usage.
If there's not enough space in stach/heap, you probably will meet stack overflow / heap underflow runtime errors, so it can't be just ignored.
Re: Why do these lines at the pawn compiler? -
Lunoxel - 26.08.2015
I put #pragma dynamic 10000000 and I do not appear those lines. ( Thanks Roberto )
Now, I'd like to ask you what is that number (10000000) and how "healthy" is this method.