Task control block memory allocation

Hi If i use the follow: vTaskCareat(Task1,…); For task1 the freertos creat TCB and stack. Is the stack include within the TCB or the stack is outside the TCB ? Is the TCB and stack are memory allocated together or separately ? Thank you FreeRTOS

Task control block memory allocation

The TCB and stack are allocated separately. You can see this easily enough if you use the debugger to step through the xTaskCreate() function, or just look at the source code.