We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi Guys,
Does anyone know if it is possible to use the RTX kernel in a C++ application?
Thank you, Brent
Yes, you can.
I've converted my RTX application written in C to C++. Initially, my app halted in the stack overflow code when it tried to jump to main. The only way I could get it to run successfully, was by declaring a 16 byte heap space. My app doesn't use dynamic memory allocation, do you know why I had to allocate memory for the heap if the app doesn't use it?
Yes, I also had to allocate 16 bytes. No, I do not know why. Since it appears to be part of the initialization, not not really dynamic mallocs and frees, I didn't complain. The main issue is/was that "my" program kept crashing in __main, before main was even called and I had to figure out why. It would be nice if there was a little documentaion.
I found a static object with file scope in my C++ application. When I removed this object, I could run successfully without declaring a heap. Apparently, the compiler was allocating memory for this object from the heap.