Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: colinmac on January 04, 2007, 06:10:32 pm

Title: Using GNU ARM
Post by: colinmac 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
Title: Re: Using GNU ARM
Post by: mandrav 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).
Title: Re: Using GNU ARM
Post by: colinmac 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.