Author Topic: [Questions] TIGCC usage in C::B?  (Read 7587 times)

Offline kurapix

  • Multiple posting newcomer
  • *
  • Posts: 68
[Questions] TIGCC usage in C::B?
« on: June 01, 2007, 01:10:57 am »
Hi folks!
I'd like to know if Code::Blocks can use TIGCC fully?

I've written to Kevin Kofler and he said some stuffs like :
Quote from: Kevin Kofler
it misses important
features like support for TIGCCLIB and ld-tigcc options

Quote from: Kevin Kofler
No way. I'd have to implement all the TIGCC-specific features in a fork or
plugin of Code::Blocks, it wouldn't be any less work than working on a better
IDE, it would just give a worse result.

So my questions are :
Can we add the TIGCC compiler as is? If so how to?
Or does TIGCC need to have a plugin written to work with C::B?

Kurapix
Code::Blocks package building script

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: [Questions] TIGCC usage in C::B?
« Reply #1 on: June 01, 2007, 01:56:19 am »
It should be possible to get the compiler to work assuming it is C or C++. But, it may not be possible to get the debugger to work without a lot of work.

I am willing to look at this if you are willing to test it. Note, to test you will have to be able to compile Code::Blocks from SVN.

If you wish to work on it, post links to the needed TI-GCC files/pages and to sample code I can compile for testing.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline kurapix

  • Multiple posting newcomer
  • *
  • Posts: 68
Re: [Questions] TIGCC usage in C::B?
« Reply #2 on: June 01, 2007, 03:06:55 am »
I am willing to test but not before 6 June (end of exams), I've got a Ti and compile C::B from SVN.

Sorry but I don't feel I have the skills necessary to work on it (I'm still learning, and I'm not yet in university) but I can test.

For the debugger, why not look at the TIGCC IDE sources? (but of course we'll need to ask Kevin Kofler's permission). Of course it's still a lot of work.

Kurapix
« Last Edit: June 01, 2007, 03:14:47 am by kurapix »
Code::Blocks package building script

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: [Questions] TIGCC usage in C::B?
« Reply #3 on: June 01, 2007, 03:17:50 am »
OK, I have looked at it already some. It looks like simple enough compiler(a subset of GCC), but the linker section looks very different.

For the debugger, why not look at the TIGCC IDE sources? (but of course we'll need to ask Kevin Kofler's permission). Of course it's still a lot of work.
Kurapix

Adding an debugger to Code::Blocks is beyond my ability.

Does it make sense to do this if Code::Blocks can NOT debug the code or run the code in the emulator?

Tim S 
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline kurapix

  • Multiple posting newcomer
  • *
  • Posts: 68
Re: [Questions] TIGCC usage in C::B?
« Reply #4 on: June 01, 2007, 06:23:11 am »
Adding a debugger to C::B? You mean you wanna run the Ti89 application in C::B?
I think that this solution would be too complicated.
Isn't it possible to integrate in the TIGCC plugin a function that allow to send the Ti89 applications to tiemu then launch tiemu (tiemu has a debugger for Ti89)?

Kurapix
Code::Blocks package building script

mariocup

  • Guest
Re: [Questions] TIGCC usage in C::B?
« Reply #5 on: June 01, 2007, 10:26:26 am »
Hi kurapix,

we developed a plugin for embedded targets like MSP430, PowerPC, TriCore. This plugin will be released in the next two weeks. This plugin checks the compilerID and modifies the Debug menu. So the user can start tools like simulator, jtag server, external debugger (e.g. insight) for a corresponding project. The plugin will start the debugger with the arguments $(TARGET_OUTPUT_FILE) so the user can simultonously debug different projects. If you like I can attach the sources a soon we release the code, perhaps this could solve your problem.

Regards,

Mario

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: [Questions] TIGCC usage in C::B?
« Reply #6 on: June 01, 2007, 01:17:24 pm »
Hi kurapix,

we developed a plugin for embedded targets like MSP430, PowerPC, TriCore. This plugin will be released in the next two weeks. This plugin checks the compilerID and modifies the Debug menu. So the user can start tools like simulator, jtag server, external debugger (e.g. insight) for a corresponding project. The plugin will start the debugger with the arguments $(TARGET_OUTPUT_FILE) so the user can simultonously debug different projects. If you like I can attach the sources a soon we release the code, perhaps this could solve your problem.

Regards,

Mario

Sounds great, please post an link to the code if you can. Or, attach the code if an link is not possible.


@Kurapix I think waiting till the Mario posts the his changes will be best before starting.

Tim S
« Last Edit: June 01, 2007, 01:18:56 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

mariocup

  • Guest
Re: [Questions] TIGCC usage in C::B?
« Reply #7 on: June 21, 2007, 08:37:09 am »
Hi kurapix,

in the attachment you find our plugin to start an external debugger like insight. The code works fine although we will reimplement the whole plugin before committing it to the CB community.

Have a look a the sources, perhaps just replacing the compilername will fit you needs.

Bye,

Mario

[attachment deleted by admin]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: [Questions] TIGCC usage in C::B?
« Reply #8 on: June 22, 2007, 03:30:56 am »
Mario:

Thanks for the source, I will try to look at it this weekend.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org