Determine the size of a real-time application

Transcription

Determine the size of a real-time application
dSPACE FAQ 269
FAQ 269
Determine the size of a real-time application
Keywords
real-time application size; memory consumption; PPC file; x86 file; x86-size.exe; RAM; FLASH
Question
How can I determine the size of a real-time application?
Solution
To determine the size of a real-time application, you can use the program x86-size.exe.
x86-size is part of the DS1006 compiler package. It can also be used for PowerPC based boards.
If you do not have the DS1006 compiler available, please download the stand-alone application from
http://www.dspace.com/support_out/_nodel/x86-size/rls62/
x86-size must be executed in a command line box.
Calling syntax:
x86-size <program>.ppc, or
x86-size -A <program>.ppc, or
x86-size -A -x <program>.ppc
Help:
x86-size -h
The names and the related size of the sections are displayed. The meaning of the sections like .text or
.rodata are documented in the PPC Compiler documentation at %PPC_ROOT%\docs\ccc_ppc_ur.pdf
chapter 12 Run-Time Organization
Section Name
Contents
.text
Program code
.rodata1
String literals
.rodata
Compiler-generated data and explicitly initialized
const variables
.data
Explicitly initialized non-const variables
.bss
Uninitialized variablesAnswer text
Related FAQs
-
Determine the size of a real-time application
FAQ Version: 1 / 2011-02-24
Page 1
dSPACE FAQ 269
How to Contact dSPACE Support
dSPACE GmbH
Rathenaustraße 26
33102 Paderborn
Germany
++49 5251 1638-941
mailto:[email protected]
http://www.dspace.com/support
dSPACE recommends that you use the support request form on the Internet to contact
dSPACE Support.
It is available at:
http://www.dspace.com/goto?supportrequest
Software Updates and Patches
dSPACE strongly recommends that you download and install the most recent patches for your
current dSPACE installation. Visit http://www.dspace.com/goto?patches for software updates
and patches.
FAQ
FAQ documents are available at http://www.dspace.com/goto?faq.
Important Notice
This document contains proprietary information that is protected by copyright. All rights are
reserved. Neither the documentation nor software may be copied, photocopied, reproduced,
translated, or reduced to any electronic medium or machine-readable form, in whole or in part,
without the prior written consent of dSPACE GmbH.
© Copyright 2011 by:
dSPACE GmbH
Rathenaustraße 26
33102 Paderborn
Germany
This publication and the contents hereof are subject to change without notice.
A list of registered dSPACE trademarks is available at:
http://www.dspace.com/goto?Trademarks
Determine the size of a real-time application
FAQ Version: 1 / 2011-02-24
Page 2