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.
- Open the TDP editor.
- Click Parser Settings > Analyser file configuration. Then add the following text.
--microsoft_asm
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.