Qcc Stack Size

Hi there, I am currently porting code from QNX4 to 6 and I am wondering how
to specify stack size under QNX6. Qcc has a flag -N, but when I turn
verbosity up to see what gcc/as/ld commands it is issuing, I see no stack
size flags being issued. In addition there are no flags in the gcc/ld
manuals regarding stack size… My question is this, how do I specify stack
size (to gcc) under QNX6?

Thanks,
Jay

Jay Stavnitzky <jstavnitzky@atsautomation.com> wrote:

Hi there, I am currently porting code from QNX4 to 6 and I am wondering how
to specify stack size under QNX6. Qcc has a flag -N, but when I turn
verbosity up to see what gcc/as/ld commands it is issuing, I see no stack
size flags being issued. In addition there are no flags in the gcc/ld
manuals regarding stack size… My question is this, how do I specify stack
size (to gcc) under QNX6?

Stacksize is set with ldrel. qcc is supposed to run it for you if you
pass the -N option, however it appears that some code rot has set in and
it’s not working. I’ll file a PR, it should be fixed in the next release.


In the meantime, run ldrel manually, eg

ldrel -L -S 4096000 filename


cburgess@qnx.com