How to Calculate RAM and ROM Size from Map File

I need to calculate total RAM/ROM size from a existing MAP file as shown below:

Memory Used in Bytes:

Code: 0x054dae

Data: 0x0192e0

Reserved: 0x0724af

Free: 0x2042c3

Total: 0x2e4800

In addition to above, there is also Space used displayed in the MAP file as below:

Space used in bytes:

Native Used RAM: 0x00a0b6

Native Used ROM: 0x063fd8

Free RAM: 0x007fc0

Free ROM: 0x0fa1e9

How do I calculate total RAM and ROM of my application program?

Thanks for help!