|How do I integrate custom compilers and linkers? [message #1011840]
||Wed, 20 February 2013 05:47
| Johnny Snail
Registered: December 2012
I (eclipse newbie) have a problem which seemed very easy to me, but now I can't achieve what I want.
I still have the need to compile programs for DOS, but I'd like to use a modern IDE / editor for writing my code. Therefore, I have the plan to use Eclipse for writing my code and to call my compilers, linkers and other tools from within eclipse. I know the correct command lines for these tools. But I am unsure how to integrate these into Eclipse.
Therefore, a few questions:
- I have downloaded the newest version of Eclipse with CDT. Since CDT by default works with GCC, I am not sure if this is the right starting point. What edition of Eclipse should I use if I want to use my own toolchain?
- In other IDEs, it's common to say "compile files having the extension .cpp with this tool and these command line switches, compile files having the extension .asm with ...". I did not find such possibility in Eclipse; I have played around with defining a builder, but it seems that this is the wrong way as well.
- It seems that I could try two things: Create a C/C++ project and try to exchange the toolchain (at least, after having created a C/C++ project, I have a menu item "C/C++ build" in the properties of the project), or create a "general" project and try to define my own toolchain (but I wasn't able to do so).
What's the recommended way to achieve what I want? I can't imagine that I have to write a plugin for such a simple task (I don't need to configure my compilers using the GUI, it would be sufficient to always use the same command line options).
Could someone, in the most simple words possible, show me a starting point?
Thank you very much!
[Updated on: Wed, 20 February 2013 05:48]
Report message to a moderator