Coder Social home page Coder Social logo

Comments (4)

jfpoilpret avatar jfpoilpret commented on September 20, 2024

This toolchain update is not going to be easy. As it turns out currently, it generates a load of "error: reinterpret_cast from integer to pointer" which are due to FastArduino way of handling REGISTERS as template parameters.

Older g++ versions would allow that (in fact it seems that was a mistake in these versions) but newer ones prevent it as per the standard.

So the issue is in FastArduino itself. I need to find a simple way to make it compliant to the standard, but for that I will first need to create a simple example showing the issue (outside FastArduino that just generates too many issues now).

I guess it will take more time as expected. Maybe release 1.1 shall be postponed or the issue assigned to a later milestone. Not sure yet what I will do. I will comment later upon my decision.

from fast-arduino-lib.

jfpoilpret avatar jfpoilpret commented on September 20, 2024

Support for newr avr-gcc (6.3.0) has been committed to master (ffd9371).

This was successfully tested with the following Fedora AVR packages:

  • avr-binutils.x86_64 1:2.27-2.fc26
  • avr-gcc.x86_64 1:6.3.0-1.fc26
  • avr-gcc-c++.x86_64 1:6.3.0-1.fc26
  • avr-libc.noarch 2.0.0-3.fc26

from fast-arduino-lib.

jfpoilpret avatar jfpoilpret commented on September 20, 2024

Next step in this issue is to try and improve codebase through new C++14 features like:

  • namespace X::Y::Z {... syntax
  • support for complex constexpr functions (several FastArduino constexpr functions, in order to compile with C++11, had to be split in several recursive constexpr sub-functions, which makes code harder to understand and maintain

The following points must be checked though:

  • support of C++14 by doxygen
  • support of C++14 by clang-format (FastArduino currently uses clang 4.0, which is pretty old)

from fast-arduino-lib.

jfpoilpret avatar jfpoilpret commented on September 20, 2024

Latest FastArduino commits are using AVR-GCC 7.2 (from Fedora distribution packages) in C++14 mode.

from fast-arduino-lib.

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.