views:

164

answers:

2

Hi, I'm just starting to learn Ada and was wondering if an editor like MVS 2008/2010 can be used? Will MVS detect the GNAT compiler? I have the GNAT GPL compiler but find the GPS editor hard to use (much less intuitive than the MVS editor). The tutorial doesn't explain well how to create a project in GPS.

I'm currently using AdaGIDE which works well, though it's limited in features.

Thanks.

+1  A: 

I haven't ever seen any VS addon for Gnat. It would be tough to do for vanilla Gnat, as it isn't compatible with the Microsoft linker. This is more of a gcc vs. Microsoft thing. There is a Gnat .NET port, which claims to integrate well with the Microsoft tools (including VisualStudio). You may have better luck with that.

The other option you have is ObjectAda. It doesn't use VisualStudio either, but it uses an environment designed to be familiar to VS users. It isn't free, but last I checked its cost was comparable to VisualC++'s. It does use the Microsoft linker, so integrating it with VisualStudio should be doable.

Personally I loathe VisualStudio, and do all my editing in Emacs (Even for Microsoft C++ work). I can see where you are comming from though.

T.E.D.
Thanks for your comments. I'll stick to AdaGIDE for now as it's doing its job. I've tried Emacs before when I was looking for a good LaTeX editor but it was a bit clumsy to use. But I understand that Emacs is an excellent editor for many people and can be perhaps the most popular editor of all time.I was programming C with an old Borland compiler and now I use MVS 2010 which executes much faster and saves me a lot of time.
yCalleecharan
+1  A: 

I've found this link from the author of AdaGIDE:

http://asharp.martincarlisle.com/VisualStudioIntegration.htm

which tells how MVS can be used.

yCalleecharan
...when using the Gnat .NET port. I *thought* that ought to be doable. Good link.
T.E.D.
I have GNAT GPL, MVS 2008 and 2010. I followed the instructions at the above link but couldn't make it work. The instructions therein were for MVS 2005 though. What's the Gnat .NET port? I'm not familiar with .NET .
yCalleecharan
I've found the link to Gnat .NET port. I didn't have it when I tried it with MVS. This explains why it didn't work.
yCalleecharan
Only the 2010 version of GNAT works with MVS2008.
yCalleecharan