This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C preprocessor in assembly

IDE:           ARM DS-5 (v5.15.0)

Platform:    Cortex R4

Hi,

I am interested to use C pre-processor in assembly file but i am facing the attached issue. According to arm documentation

Using the C preprocessorFlag.png

I set the flag --cpreproc and --cpreproc_opts but getting following issue:


Error: C3472E: No source language specified (--cpp or --c90) and sourcefile extensions conflict

Fatal error: A1905U: Pre-processor step failed for '../xx_xxxxxx_xxxxx_restore.s'

1 Error, 0 Warnings

make: *** [xx_xxxxxx_xxxxx_restore.o] Error 8

Error.png
I really appreciate your suggestions.

Thanks.

Parents
  • asi,

    Can you provide the armasm line that your tool generates? Also, what version of armasm are you using.

    I tried a line like this:

    armasm --cpu=Cortex-R4 --cpreproc --cpreproc_opts=-DTHREAD_PROFILING_ENABLED -o .obj/xxx__xxx_restore.o ../../appsrc/xxx/xxx_restore.s

    and it works as expected (no 1905 error)

Reply
  • asi,

    Can you provide the armasm line that your tool generates? Also, what version of armasm are you using.

    I tried a line like this:

    armasm --cpu=Cortex-R4 --cpreproc --cpreproc_opts=-DTHREAD_PROFILING_ENABLED -o .obj/xxx__xxx_restore.o ../../appsrc/xxx/xxx_restore.s

    and it works as expected (no 1905 error)

Children