Keil Logo

GENERAL: TABS - UNKNOWN CONTROL


Information in this article applies to:

  • C51 Version 6
  • C166 Version 4
  • C251 Version 3
  • µVision Version 2
  • µVision Version 3

QUESTION

I am using µVision to translate C source files, but I am getting the following error:

FATAL-ERROR -
  ACTION:  PARSING INVOKE-/#PRAGMA-LINE
  LINE:    C51.EXE myfile.c TABS(
  ERROR:   UNKNOWN CONTROL

I seems that µVision inserts a TABS control that is not known by the Keil Compiler. What is wrong and how can I solve my problem?

ANSWER

The TABS directive tells the compiler the tab width for expansion of tab (0x09) characters into space characters. The directive was introduced in µVision V2.30 and is derived from the setting under Edit — Configuration — Editor — C/C++ Files — Tab Size.

The problem occurs when you are running a C Compiler that is older than the µVision release and predates the µVision version.

From µVision, you may avoid the generation of the TABS directive in the following ways:

  • Use the default tab setting 4 under Edit — Configuration — Editor — C/C++ Files — Tab Size.
  • Disable the option C Compiler Listing under Projects — Options — Listing.

MORE INFORMATION

  • Refer to TABS in the Cx51 User's Guide.
  • Refer to TABS in the C251 User's Guide, available on request from Technical Support (C251.pdf).
  • Refer to TABS in the C166 User's Guide.

Last Reviewed: Thursday, January 11, 2007


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.