IBM Support

How to specify the memory location of variables generated by Instrumentation

Question & Answer


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\)


[{"Product":{"code":"SSSHUF","label":"Rational Test RealTime"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Runtime Analysis: C","Platform":[{"code":"PF033","label":"Windows"}],"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","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21619281