How to Modify Photon MakeFile to change the stack size..

bridged with qdn.public.qnx4.photon
Post Reply
ran zhang

How to Modify Photon MakeFile to change the stack size..

Post by ran zhang » Thu May 02, 2002 3:50 pm

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?

Marian Oklapek

Re: How to Modify Photon MakeFile to change the stack size..

Post by Marian Oklapek » Mon May 06, 2002 9:40 am

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.

Post Reply

Return to “qdn.public.qnx4.photon”