Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-11460

Cannot use --strict_ansi with assembler directive .cdecls

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low

      The following shows an assembly file and a command to build it.

      $ type file.asm
              .cdecls C, LIST
              %{
                      #define NAME 100
              %}
      
              .text
              nop
      
      $ cl2000 -al --strict_ansi file.asm
      At end of source: error: a translation unit must contain at least one declaration
      "file.asm", WARNING! at line 1: [E1000] error while processing C code in .cdecls
                                              directive
                      .cdecls C, LIST
      
      No Assembly Errors, 1 Assembly Warning
      

      Inspect the listing file to see that the .cdecls directive has no effect.

      If --strict_ansi is not used, the build works as expected.

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: