On 03.03.2013 11:04, Michael Ring wrote:
For a little more flexible solution I would like to ask you one more
questions, it may seem dumb to you but I have never been that deep into
a compiler before so I am learning a lot atm.
I can see that the compiler param -Ch can be used to define the
heapsize, I can also see in the assembler code of my main program that
when I set -Ch I also get a section:
-Ch2048 results in this:
.section .data.n___heapsize
.balign 4
.globl __heapsize
__heapsize:
.long 2048
but I do not seem to be able to access __heapsize in my code, how could
I use this information to make the heapsize configurable?
Did you try
=== code begin ===
var
heapsize: LongWord; external name '__heapsize';
=== code end ===
?
Regards,
Sven
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel