IBM Support

C++ Instrumentor fails on ASM instruction with error #194 or error #65

Troubleshooting


Problem

Attempts to apply the C++ instrumentor of IBM Rational Test RealTime result in errors "TestRT attolccp: ... error".

Symptom


TestRT attolccp: "D:\Projects\Sources\test_main.c",line
228: error #194:
expected an asm string
while ( _FSTAT . Bits . FCCF == 0 )
^
TestRT attolccp: "D:\Projects\Sources\test_main.c",line
229: error #65:
expected a ";"

Cause

The analyser does not accept Microsoft _asm and __asm keyword.



The Microsoft ASM has the following syntax.


__asm assembly-instruction [ ; ] [comment]
__asm { assembly-instruction-list [;][comment]

If you do not write braces right after the _asm keyword, Rational Test RealTime sees the rest of the line as an assembly-language statement. Therefore the parser ignores the resr of the line.


If you do write braces right after the __asm keyword, Rational Test RealTime interprets each line between the braces as an assembly-language statement.


NOTE
_asm is a synonym for __asm.

Resolving The Problem

Enable the Microsoft _asm and __asm keyword in the Target Deployment Port (TDP) editor.

  1. Open the TDP editor.


  2. Click Parser Settings > Analyser file configuration. Then add the following text.


    --microsoft_asm








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

Document Information

Modified date:
16 June 2018

UID

swg21496381