Giter VIP home page Giter VIP logo

Comments (7)

Issues-translate-bot avatar Issues-translate-bot commented on June 16, 2024

Bot detected the issue body's language is not English, translate it automatically.


Title: armclang assembly warning

from xmake.

waruqi avatar waruqi commented on June 16, 2024

这个好像跟 xmake 没啥关系吧,你可以自己调下 flags ,看下为啥 armclang 会显示这个警告。。xmake 没有加其他 flags

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on June 16, 2024

Bot detected the issue body's language is not English, translate it automatically.


This seems to have nothing to do with xmake. You can adjust flags yourself to see why armclang displays this warning. . xmake does not add other flags

from xmake.

Dozingfiretruck avatar Dozingfiretruck commented on June 16, 2024

这个好像跟 xmake 没啥关系吧,你可以自己调下 flags ,看下为啥 armclang 会显示这个警告。。xmake 没有加其他 flags

重新捋了一遍确实不应该和xmake有关系,不是xmake加的,但是却报这个,ide里显示的汇编命令有

-mcpu=cortex-m3 -masm=auto  -Wa,armasm,--diag_suppress=A1950W -c
-gdwarf-4 -Wa,armasm,--pd,"__MICROLIB SETA 1"
 -Wa,armasm, -Wa,armasm,--pd,"AIR32F10X_MD SETA 1"

但是自己写这些命令其中

 -mcpu=cortex-m3 -masm=auto  -Wa,armasm,--diag_suppress=A1950W -c -gdwarf-4 -Wa,armasm,

都会报不识别
,命令中好像会把-后面的一个字母吞掉一样,没弄明白怎么回事

比如 -mcpu=cortex-m3
image
编译会报
image
会把-后面的一个字母吞掉,变成了 -cpu cortex-m3

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on June 16, 2024

Bot detected the issue body's language is not English, translate it automatically.


This seems to have nothing to do with xmake. You can adjust flags yourself to see why armclang displays this warning. . xmake does not add other flags

I checked it again and it really shouldn’t have anything to do with xmake. It wasn’t added by xmake, but it reported this. The assembly command displayed in the IDE is

-mcpu=cortex-m3 -masm=auto -Wa,armasm,--diag_suppress=A1950W -c
-gdwarf-4 -Wa,armasm,--pd,"__MICROLIB SETA 1"
 -Wa,armasm, -Wa,armasm,--pd,"AIR32F10X_MD SETA 1"

But write these commands yourself

 -mcpu=cortex-m3 -masm=auto -Wa,armasm,--diag_suppress=A1950W -c -gdwarf-4 -Wa,armasm,

Will report that it is not recognized
, the command seems to swallow the letter after -, I don’t understand what’s going on.

For example -mcpu=cortex-m3
image
Compilation report
image
It will swallow up the letter after - and become -cpu cortex-m3

from xmake.

waruqi avatar waruqi commented on June 16, 2024

这也是 armasm 的问题,跟 xmake 好像也没啥关系

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on June 16, 2024

Bot detected the issue body's language is not English, translate it automatically.


This is also a problem with armasm, and it seems to have nothing to do with xmake.

from xmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.