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

Technote (troubleshooting)


Problem(Abstract)

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








Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Test RealTime
Runtime Analysis: C

Software 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

Operating system(s):

Linux, Windows

Reference #:

1496381

Modified date:

2012-11-15

Translate my page

Machine Translation

Content navigation