Giter VIP home page Giter VIP logo

Comments (3)

christophe0606 avatar christophe0606 commented on June 4, 2024 1

@petertorelli You can just define __GNUC_PYTHON__.
The name of the define is not very clear. It was initially introduced for building the Python wrapper but now it is generally used to build for host.

I don't want to have automatic detection like with __GNUC__ because if you compile with gcc and target Arm you will want some DSP instructions existing on Cortex-A aarch32.

The meaning of __GNUC_PYTHON__ is to disable those DSP extensions and use instead pure C implementation.

In fact, what I am trying to detect is not the compiler but the host platform. So when it is built with MSVC or XCode I can detect the platform from the compiler. When it is built with gcc or clang I can't. So the developer just has to define __GNUC_PYTHON__

from cmsis-dsp.

petertorelli avatar petertorelli commented on June 4, 2024

I'll generate a PR if this is a legit issue.

from cmsis-dsp.

petertorelli avatar petertorelli commented on June 4, 2024

I understand now, thanks. (I've tried to determine platform architecture from predefined compiler macros before and it was maddening due to utter lack of standardization.)

from cmsis-dsp.

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.