Can GCC plug-in defaults be customized?

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

Is it possible to customize the default settings of the GCC plug-in? For example, I would like to set up a default include file folder (among other things). Is there a makefile template or some such that could be editted to do that for each new project?

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

Probably not. If there was we would have discovered / heard of it when discussing that the Studio defaults to -O0 and does not link in libm.a by default.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

Thanks for letting me know. I think I can work something out by creating a default AVR Studio project ("default.aps"). The .aps file is in XML format and I found I could hand-edit it to fine tune it. After copying it to the new project location I just needed to replace all occurences of "default" with my actual project name. I might automate that with a sed script or something.

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

You can also generate an external makefile using either AVRStudio or Mfile from WinAVR. Then you have access to all of make's abilities.

Stu

Engineering seems to boil down to: Cheap. Fast. Good. Choose two. Sometimes choose only one.

Newbie? Be sure to read the thread Newbie? Start here!

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

With AVRStudio 4.13 (Build 577), I got rid of -O0. It now defaults to -os, which is much better.

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

There is a "trick" you can do. If you have a project already loaded in Studio when you create a new GCC project it inherits all the current settings, not the defaults. So just make sure you have a -Os/libm.a project loaded before you create the new one.