IAR Linker script and FreeRTOSConfig.h

I using IAR EWARM 6.5x and FreeRTOS 7.1.0
I have 3 questions related to memory management. 1)  I am a bit confused on the relationship between the heap size in the IAR linker script and the configTOTAL_HEAP_SIZE in FreeRTOSConfig.h, if any.   Is configTOTAL_HEAP_SIZE  only for the RTOS and the size in the linker script for everything else?  I am using heap.4.  I dont see anything in the map file that resides in the heap space defined by the linker script. 2)  I understand the Stack size in the linker script is only used by main before the scheduler starts.  I know each task has its own stack,  Does that allocation for these stacks come out the memory defined by configTOTAL_HEAP_SIZE ? 3)  I am using lwIP in my application and it uses malloc and free as defined in mem.h.  Should I use pvPortMalloc and pvPortFree instead?  The lwIP example I based my app off of came from NXP and used FreeRTOS so I dont understand why it wouldnt already use pvPortMalloc and pvPortFree. Thanks for any help.

IAR Linker script and FreeRTOSConfig.h

Is configTOTAL_HEAP_SIZE  only for the RTOS and the size in the linker script for everything else?
Effectively yes. configTOTAL_HEAP_SIZE is used if pvPortMalloc() is called. The heap set by the linker script is used if malloc() is called. The RTOS only uses pvPortMalloc(). Application code and drivers might use one or both.
I am using heap.4
. heap_3.c is the only provided memory manager that uses malloc(). Heap_1, 2 and 4 uses configTOTAL_HEAP_SIZE.
2)  I understand the Stack size in the linker script is only used by main before the scheduler starts.
Some ports also use that stack as the interrupt stack.
I know each task has its own stack,  Does that allocation for these stacks come out the memory defined by configTOTAL_HEAP_SIZE ?
Yes.
3)  I am using lwIP in my application and it uses malloc and free as defined in mem.h.  Should I use pvPortMalloc and pvPortFree instead?  The lwIP example I based my app off of came from NXP and used FreeRTOS so I dont understand why it wouldnt already use pvPortMalloc and pvPortFree.
Ask NXP?

IAR Linker script and FreeRTOSConfig.h

Thanks very much!