tccrun: add option CONFIG_RUNMEM_RO=2
commit9d2068c6309dc50dfdbbc30a5d6757683d3f884c
authorgrischka <grischka>
Sun, 3 Mar 2024 19:40:53 +0000 (3 20:40 +0100)
committergrischka <grischka>
Sun, 3 Mar 2024 20:39:53 +0000 (3 21:39 +0100)
treec7f94a81a4bfddf613655fcfa99feed4c74dc7df
parentca061f3a96216f85f6fe72868083208aa0a740b9
tccrun: add option CONFIG_RUNMEM_RO=2

/* 0 = .text rwx  other rw (memory: min 2 pages) */
/* 1 = .text rx   other rw (memory: min 3 pages) */
/* 2 = .text rx  .rdata ro  .data/.bss rw (memory: min 4 pages) */

tcc -vv -run ... shows some info.
Also when compiled with -DMEM_DEBUG:
tcc -bench -run ... shows some memory usage
Makefile
libtcc.c
tcc.h
tccpe.c
tccpp.c
tccrun.c
tests/Makefile
tests/tcctest.c
tests/tests2/Makefile