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.
- Open the TDP editor.
- Click Parser Settings > Analyser file configuration. Then add the following text.
--microsoft_asm
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21496381