@MCM: RAM area will be counted as used from first used byte to last used byte in one block. But you are allowed to buffer the used area somewhere else at start and restore it on exit so it appears untouchted.