Author Topic: Using GNU ARM  (Read 3775 times)

Offline colinmac

  • Multiple posting newcomer
  • *
  • Posts: 10
Using GNU ARM
« on: January 04, 2007, 06:10:32 pm »
A quick question:  I'm using SVN 3369, Dec 12, and my project uses the GNU ARM GCC compiler.  Everything works fine, which is the good news, but I'd like to specify -mcpu=arm7 as a compiler option.  I'm doing this under 'Other options', but I think it would be nicer to tick the -mcpu=NAME option and specify NAME as arm7.  Is this implemented yet?  If so, how do I get something other than the literal '-mcpu=NAME' in the compiler command line?

Thanks,
Colin MacDonald

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Using GNU ARM
« Reply #1 on: January 04, 2007, 07:31:20 pm »
Use as option "-mcpu=$(CPU_NAME)" and add a custom variable named "CPU_NAME" with value "arm7" (or whatever).
Be patient!
This bug will be fixed soon...

Offline colinmac

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Using GNU ARM
« Reply #2 on: January 04, 2007, 10:42:25 pm »
Unless I'm missing something that's under 'Other options', which is what I'm already using.  But if there's an option I can tick marked '-mcpu=NAME' then I'd expect that the NAME part is configurable somehow; at the moment I just get -mcpu=NAME in the GCC command line.