Arduino uno queries

I am using Arduino uno R3 & 1.6.5.

  1. What is the default stack/heap size in uno? Can we change it?

  2. Can we check the max size of stack grown during entire program execution?

  3. I have uno board with 28 pin MCU PDIP. In actual circuit I want to have smd package. Can the same program will work for its 32pin tQFp package?

  1. Stack and heap are unlimited, until you run out of memory. There is no pre-allocation to one or the other.

  2. Yes, There's many "free memory available" functions out there that will allow you to check this. However there's no "high water mark" that would let you check the maximum at some other time after the peak has passed.

  3. If you choose the same processor in a different package then it will have the same memory. This is all in the datasheet.

  1. What is the default stack/heap size in uno? Can we change it?

8 bits wide. No.

The stack and the heap grow from opposite ends of SRAM. You can look up how much SRAM you have.

  1. Can we check the max size of stack grown during entire program execution?

http://playground.arduino.cc/Code/AvailableMemory

  1. I have uno board with 28 pin MCU PDIP. In actual circuit I want to have smd package. Can the same program will work for its 32pin tQFp package?

The shape of the package doesn’t matter. It’s the chip in the package that matters.