11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Project code and data sizesDevelopers are always interested in how much memory their applications take up, andwith small embedded microcontrollers this is especially true. The Project Explorer candisplay the code and data sizes <strong>for</strong> each project and individual source file that issuccessfully compiled. To do this, click the Options dropdown on the Project Explorertool bar and make sure that Show Code/Data Size is checked. Once checked, theProject Explorer displays two additional columns, Code and Data.The Code column displays the total code space required <strong>for</strong> the project and the Datacolumn displays the total data space required. The code and data sizes <strong>for</strong> each C andassembly source file are estimates, but good estimates nontheless. Because the linkerremoves any unreferenced code and data and per<strong>for</strong>ms a number of optimizations, thesizes <strong>for</strong> the linked project may not be the sum of the sizes of each individual file. Thecode and data sizes <strong>for</strong> the project, however, are accurate. As be<strong>for</strong>e, your numbers maynot match these exactly.DependenciesThe Project Explorer is very versatile: not only can you display the code and data sizes<strong>for</strong> each element of a project and the project as a whole, you can also configure theProject Explorer to show the dependencies <strong>for</strong> a file. As part of the compilation process,CrossStudio finds and records the relationships between filesthat is, it finds which filesare dependent upon other files. CrossStudio uses these relationships when it comes tobuild the project again so that it does the minimum amount of work to bring the projectup to date.To show the dependencies <strong>for</strong> a project, click the Options button on the ProjectExplorer tool bar and ensure that Show Dependencies is checked in the menu. Oncechecked, dependent files are shown as sub-nodes of the file which depends upon them.Chapter 2Exploring projects23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!