News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

[Questions] TIGCC usage in C::B?

Started by kurapix, June 01, 2007, 01:10:57 AM

Previous topic - Next topic

kurapix

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 Koflerit misses important
features like support for TIGCCLIB and ld-tigcc options

Quote from: Kevin KoflerNo 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

stahta01

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

kurapix

#2
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
Code::Blocks package building script

stahta01

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.

Quote from: kurapix on June 01, 2007, 03:06:55 AM
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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

kurapix

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

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

stahta01

#6
Quote from: mariocup 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

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

mariocup

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]

stahta01

Mario:

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

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