Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: GCC version?

  1. #1
    Junior Member
    Join Date
    May 2021
    Posts
    1

    GCC version?

    I noticed that the Teensy Arduino environment uses a pretty old compiler. It shows this:
    GCC version: arm-none-eabi-g++ (GNU Tools for ARM Embedded Processors) 5.4.1 20160919 (release) [ARM/embedded-5-branch revision 240496]
    I have a problem with variadic templates with it. Is it possible to update it to the latest GCC compiler? Probably the build environment is already all automated and would be just specifying a different version?

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    14,462
    There are threads about use of GCC 9 and how to install into the build ...

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,485
    Use of newer gcc was recently discussed here:

    https://forum.pjrc.com/threads/67252...l=1#post279446

    If by "Is it possible to update it to the latest GCC compiler?" you want to install another compiler on your computer, then yes, it certainly is possible. See those messages on 1.54-beta8 & 1.54-beta9 threads for details.

    If you find more things which break, please report them with test case code on those beta test threads. Just know the odds are slim any gcc9 issues will get fixed for 1.54. It's a long-term thing.

    But if your question is asking whether PJRC will bundle a newer compiler, for Teensyduino 1.54 the answer is definitely no. Later, eventually, probably. So far testing has shown no performance improvement and in some cases slightly slower compiled code on the latest versions. Reality is advanced C++ templates aren't a huge motivation to update.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •