Author Topic: Using Code::Blocks with GCC for 68HC12  (Read 9562 times)

Bill Stapleton

  • Guest
Using Code::Blocks with GCC for 68HC12
« on: August 10, 2009, 10:01:30 pm »
Hello all,
I am a first-time Code::Blocks user.  I downloaded it on a recommendation from a colleague for its support of GCC ports.  I was hoping that it would recognize the GCC for 68HC12 port automatically, but no such luck.  Oh well, more fun for me.
I found a couple of threads referring to this same issue but none of them were resolved. 
Could anyone suggest where to start looking for examples of how previous GCC ports have been handled so I can start looking at making my own port of the GCC for 68HC12 toolset?
Any advice welcome.
Thanks in advance.

mariocup

  • Guest
Re: Using Code::Blocks with GCC for 68HC12
« Reply #1 on: August 10, 2009, 10:39:15 pm »
If you have a look at the CB sources

Code
http://svn.berlios.de/wsvn/codeblocks/trunk/src/plugins/compilergcc/compilerGNUARM.cpp
http://svn.berlios.de/wsvn/codeblocks/trunk/src/plugins/compilergcc/compilerGNUARM.h

you see an example how a GCC compiler should look like. After creating such files for 68HC12 you have to add the cpp, h file to the CB project file and in addition

Code
http://svn.berlios.de/wsvn/codeblocks/trunk/src/plugins/compilergcc/compilergcc.cpp

add an include directive for the corresponding h file.


Bill Stapleton

  • Guest
Re: Using Code::Blocks with GCC for 68HC12
« Reply #2 on: August 11, 2009, 03:13:08 pm »
Thank you.  I'll take a look and see what I can do.