I’m trying to increase the stack size of my photon app to 128k, I added -N
128K at the line
CFLAGS = -v$(PLATFORM) -3 -mf -w1 $(OPTIM) $(DEBUG) $(PHABOPTS) -N 128k
when I run my photon app, function stackavail() stil returns me the same
value…
can someone help?
ran zhang <rzhang@vamcointernational.com> wrote:
I’m trying to increase the stack size of my photon app to 128k, I added -N
128K at the line
CFLAGS = -v$(PLATFORM) -3 -mf -w1 $(OPTIM) $(DEBUG) $(PHABOPTS) -N 128k
when I run my photon app, function stackavail() stil returns me the same
value…
can someone help?
You must add stack size to the linker option LDFLAGS and SDFLAGS.
Try this combination:
CFLAGS = -v$(PLATFORM) -3 -mf -w1 $(OPTIM) $(DEBUG) $(PHABOPTS)
LDFLAGS = -v$(PLATFORM) -3 -mf -N 128k $(DEBUG) -l Aplib -l phrtlib -l phexlib -l phcontrib -l photon -l phrender_s $(PHABOPTS) $(LIB_FILES)
SDFLAGS = -v$(PLATFORM) -3 -mf -N 128k $(DEBUG) -l Aplib -l phrtlib -l phexlib -l phcontrib -l photon_s -l phrender_s $(PHABOPTS) $(LIB_FILES)
Majo.