Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

Custom stack size for main thread doesn't work
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: Stack size
  • SDP: 6.3.2
  • Target: Any supported target
________________________________________________________________________

Solution
________________________________________________________________________

The default thread stack size (128 KB for arm, 512 KB otherwise) for the main thread can by changed using the -N option to qcc, the QNX C compiler. You can examine the stack sizes of threads by using 'pidin mem', or, by using the IDE's System Information Perspective. If you have altered the stack size of the main thread, and you find that the stack size is unchanged when you examine it, you could be affected by a bug in the IDE where it strips out the stack information from the binary. This problem is fixed in the 6.4.0 and later IDE's.

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.