MSP430 Code Size in CCS

Set up your project to output a "MAP" file. This gives all of the memory use information. In CCS4, the project properties "Basic Options" under the linker options will do this. From command line, use "--map_file".

The map file will show up in the Debug or Release folder. The first section will look something like the example below which shows the location, length, and use of each memory section. (Note that the example shows 3 special sections which you won't have: BT_FLASH, NV_FLASH, and BI_FLASH.)

To understand how these sections are defined reference the project's linker command file.

Example:

MEMORY CONFIGURATION

         name            origin    length      used     unused   attr    fill
----------------------  --------  ---------  --------  --------  ----  --------
  SFR                   00000000   00000010  00000000  00000010  RWIX
  PERIPHERALS_8BIT      00000010   000000f0  00000000  000000f0  RWIX
  PERIPHERALS_16BIT     00000100   00000100  00000000  00000100  RWIX
  INFOD                 00001800   00000080  00000000  00000080  RWIX
  INFOC                 00001880   00000080  00000000  00000080  RWIX
  INFOB                 00001900   00000080  00000000  00000080  RWIX
  INFOA                 00001980   00000080  00000000  00000080  RWIX
  RAM                   00001c00   00004000  00003fea  00000016  RWIX
  BT_FLASH              00005c00   00001000  00000f34  000000cc  RWIX
  NV_FLASH              00006c00   00000500  0000002a  000004d6  RWIX
  BI_FLASH              00007100   00000100  00000010  000000f0  RWIX
  FLASH                 00007200   00008d80  00008d80  00000000  RWIX
  INT00                 0000ff80   00000002  00000000  00000002  RWIX
  INT01                 0000ff82   00000002  00000000  00000002  RWIX
  INT02                 0000ff84   00000002  00000000  00000002  RWIX
  INT03                 0000ff86   00000002  00000000  00000002  RWIX
  INT04                 0000ff88   00000002  00000000  00000002  RWIX
  INT05                 0000ff8a   00000002  00000000  00000002  RWIX
  INT06                 0000ff8c   00000002  00000000  00000002  RWIX
  INT07                 0000ff8e   00000002  00000000  00000002  RWIX
  INT08                 0000ff90   00000002  00000000  00000002  RWIX
  INT09                 0000ff92   00000002  00000000  00000002  RWIX
  INT10                 0000ff94   00000002  00000000  00000002  RWIX
  INT11                 0000ff96   00000002  00000000  00000002  RWIX
  INT12                 0000ff98   00000002  00000000  00000002  RWIX
  INT13                 0000ff9a   00000002  00000000  00000002  RWIX
  INT14                 0000ff9c   00000002  00000000  00000002  RWIX
  INT15                 0000ff9e   00000002  00000000  00000002  RWIX
  INT16                 0000ffa0   00000002  00000000  00000002  RWIX
  INT17                 0000ffa2   00000002  00000000  00000002  RWIX
  INT18                 0000ffa4   00000002  00000000  00000002  RWIX
  INT19                 0000ffa6   00000002  00000000  00000002  RWIX
  INT20                 0000ffa8   00000002  00000000  00000002  RWIX
  INT21                 0000ffaa   00000002  00000000  00000002  RWIX
  INT22                 0000ffac   00000002  00000000  00000002  RWIX
  INT23                 0000ffae   00000002  00000000  00000002  RWIX
  INT24                 0000ffb0   00000002  00000000  00000002  RWIX
  INT25                 0000ffb2   00000002  00000000  00000002  RWIX
  INT26                 0000ffb4   00000002  00000000  00000002  RWIX
  INT27                 0000ffb6   00000002  00000000  00000002  RWIX
  INT28                 0000ffb8   00000002  00000000  00000002  RWIX
  INT29                 0000ffba   00000002  00000000  00000002  RWIX
  INT30                 0000ffbc   00000002  00000000  00000002  RWIX
  INT31                 0000ffbe   00000002  00000000  00000002  RWIX
  INT32                 0000ffc0   00000002  00000000  00000002  RWIX
  INT33                 0000ffc2   00000002  00000000  00000002  RWIX
  INT34                 0000ffc4   00000002  00000000  00000002  RWIX
  INT35                 0000ffc6   00000002  00000000  00000002  RWIX
  INT36                 0000ffc8   00000002  00000000  00000002  RWIX
  INT37                 0000ffca   00000002  00000000  00000002  RWIX
  INT38                 0000ffcc   00000002  00000000  00000002  RWIX
  INT39                 0000ffce   00000002  00000000  00000002  RWIX
  INT40                 0000ffd0   00000002  00000000  00000002  RWIX
  INT41                 0000ffd2   00000002  00000002  00000000  RWIX
  INT42                 0000ffd4   00000002  00000002  00000000  RWIX
  INT43                 0000ffd6   00000002  00000002  00000000  RWIX
  INT44                 0000ffd8   00000002  00000002  00000000  RWIX
  INT45                 0000ffda   00000002  00000002  00000000  RWIX
  INT46                 0000ffdc   00000002  00000002  00000000  RWIX
  INT47                 0000ffde   00000002  00000002  00000000  RWIX
  INT48                 0000ffe0   00000002  00000002  00000000  RWIX
  INT49                 0000ffe2   00000002  00000002  00000000  RWIX
  INT50                 0000ffe4   00000002  00000002  00000000  RWIX
  INT51                 0000ffe6   00000002  00000002  00000000  RWIX
  INT52                 0000ffe8   00000002  00000002  00000000  RWIX
  INT53                 0000ffea   00000002  00000002  00000000  RWIX
  INT54                 0000ffec   00000002  00000002  00000000  RWIX
  INT55                 0000ffee   00000002  00000002  00000000  RWIX
  INT56                 0000fff0   00000002  00000002  00000000  RWIX
  INT57                 0000fff2   00000002  00000002  00000000  RWIX
  INT58                 0000fff4   00000002  00000002  00000000  RWIX
  INT59                 0000fff6   00000002  00000002  00000000  RWIX
  INT60                 0000fff8   00000002  00000002  00000000  RWIX
  INT61                 0000fffa   00000002  00000002  00000000  RWIX
  INT62                 0000fffc   00000002  00000002  00000000  RWIX
  RESET                 0000fffe   00000002  00000002  00000000  RWIX
  FLASH2                00010000   00035c00  0000aa80  0002b180  RWIX

CCSv5 has a graphical memory use display. Select View -> Other -> Code Composer Studio -> Memory Allocation. The first time I used this, it needed to set up some configuration for the project .... but it prompted for everything and was relatively simple.