How to specify the memory location of variables generated by Instrumentation

Technote (FAQ)


Question

How do you specify the memory location of variables that Instrumentation generated in IBM Rational Test RealTime (TestRT)?

Cause

TestRT adds various symbols to the code when it instruments the files and adds the code for the Target Deployment Port (TDP). You want manage where TestRT places those symbols in memory.

Answer

If the compiler allows to set the section name, you can set the section Name for TestRT variables in the following TDP section. Helpful would be define ATL_SECTION,


Library Settings > Include files visible to all generated and instrumented files.


EXAMPLE



static int ATTOL_VAR[] __attribute__ ((section ( <Section_name>)));


#define ATL_SECTION <Section_name>






From the command line, you can pass the option directly at the compilation phase.

 -D ATL_SECTION=ATL_STR\(sectionName\)



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Test RealTime
Runtime Analysis: C

Software version:

7.5, 7.5.0.1, 7.5.0.2, 7.5.0.3, 7.5.0.4, 7.5.0.5, 7.5.0.6, 8.0, 8.0.0.1, 8.0.0.3

Operating system(s):

Windows

Reference #:

1619281

Modified date:

2013-05-07

Translate my page

Machine Translation

Content navigation