Home
  • Products
  • Solutions
  • Support
  • Company
  • Products
  • Solutions
  • Support
  • Company
Community Hardware/Software Co-Development, Verification… Xtensa compiler issue

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 56
  • Views 3299
  • Members are here 0
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

Xtensa compiler issue

MxL Hunter
MxL Hunter 11 months ago

Hi 

I have a Xtensa compiler issue that the compilation for switch case would be optimized in some patterns and leads to unexpected result. I cross-checked the assembly code and found that such compiler optimization seems to be similar to the tree-switch-conversion feature in GCC compiler

  • https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/Optimize-Options.html
    -ftree-switch-conversion
        Perform conversion of simple initializations in a switch to initializations from a scalar array. This flag is enabled by default at -O2 and highe

Unfortunately I don't find any similar compiler option(like -fno-tree-switch-conversion) in Xtensa compiler(XCC) to enable/disable such feature and such feature seems like enabled in XCC by default even if I'm using -O0 for the least optimization.

I'm wondering if there's any possible solution to permanently disable such feature in XCC?

PS: The release version of XCC compiler I'm using is RD-2012.5

Thanks!

  • Cancel
  • Andrew Beckett
    Andrew Beckett 11 months ago

    As a moderator of some of the other forums and the person who approved your post, to answer your question about why this was marked as potentially spam, it's because your post had a non-Cadence URL link in it. Obviously your post isn't spam, but this is just a way of cutting down the large amounts of noise we were getting with link spammers.

    Regards,

    Andrew

    • Cancel
    • Up 0 Down
    • Cancel
  • StephenH
    StephenH 11 months ago

    I see that you've also filed the same question as a support ticket via support.cadence.com so I'll let the dedicated Tensilica support team respond to you via that channel.

    Note that your compiler version is 10 years old, you should consider using a newer and supported version!

    • Cancel
    • Up 0 Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2023 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information