Effect of GCC "-pipe" option

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm actually using the GCC ARM version for SAM D20/D21/R21 - but I guess it's generic GCC?

 

Wanting to see the preprocessor output, I added '-save-temps' to the Miscellaneous project options.

 

It works, but I get this warning:

 

Warning    1    -pipe ignored because -save-temps specified    arm-none-eabi-gcc.exe    0    0    SAMR21_XPRO

 

 So the question is: does the '-pipe' option actually have any significant effect?

 

This discussion - http://stackoverflow.com/questio... - would seem to suggest that it's generally not significant; what do others here find with Atmel Studio?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Not near a PC to try it now but I'm sure I have just used -save-temps for ARM code in Studio in the past and I don't ever remember seeing such a warning.

 

(also used it with the arm-gcc in Code Red for NXP and as I remember it there was no problem there either).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gcc can be configured for various mix of default options. Try to run your variety of gcc on any input .c file with -Q -v  to see them.

 

JW

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The question is not about the warning - the warning is benign.

 

The question is:  does the '-pipe' option actually have any significant effect in the experience of other Atmel Studio users?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

> The question is not about the warning

And the answer was not to your question ;-) rather, to Cliff's comment that he's never seen this warning.

 

But, if you want an completely unqualified and unusable answer, IMO, any other users' experience is void, as performance of pipes versus files would depend on a gazillion factors of the particular user's hardware and OS setup and state...

 

Jan

 

PS. Real embedded programmers wouldn't touch M$VisualAnything with a stick... ;-)