Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

C++ compilers


  • Please log in to reply
9 replies to this topic

#1 Kenny Kerr

Kenny Kerr

    Member

  • Members
  • PipPip
  • 17 posts

Posted 05 January 2011 - 03:04 PM

Hi Chris, If we decided to throw some native code into the mix what C++ compilers are available? On the desktop I use Visual C++ 2010 with its good support for C++0x language features and libraries. Presumably the Standard C++ Library won’t be available but at least a compiler with good support for templates is a must. Also, is it pretty straightforward to mix some native functions into an otherwise C# based Netduino project? My Netduino Plus has finally shipped. Can’t wait! Cheers, Kenny

#2 Illishar

Illishar

    Advanced Member

  • Members
  • PipPipPip
  • 146 posts

Posted 05 January 2011 - 04:08 PM

This gives a small tutorial for doing interop with native code: http://informatix.mi...ls/Interop.aspx It's not that difficult. It's when you have to flash the output, it gets tricky. The Netduinos doesn't have that much space. If you're really serious about it, you might have to buy the rather expensive RVDS compiler.

#3 Illishar

Illishar

    Advanced Member

  • Members
  • PipPipPip
  • 146 posts

Posted 05 January 2011 - 04:11 PM

C++0x as in "the new *draft* version of C++"? http://en.wikipedia.org/wiki/C%2B%2B0x Impressive, I didn't think it had arrived yet.

#4 Kenny Kerr

Kenny Kerr

    Member

  • Members
  • PipPip
  • 17 posts

Posted 05 January 2011 - 04:11 PM

Thanks for the link!

#5 Kenny Kerr

Kenny Kerr

    Member

  • Members
  • PipPip
  • 17 posts

Posted 05 January 2011 - 04:12 PM

C++0x as in "the new *draft* version of C++"?

http://en.wikipedia.org/wiki/C%2B%2B0x

Impressive, I didn't think it had arrived yet.


Yes, Visual C++ 2010 has implemented many of the new language and libraries defined by the upcoming C++0x proposed standard.

#6 Illishar

Illishar

    Advanced Member

  • Members
  • PipPipPip
  • 146 posts

Posted 05 January 2011 - 04:13 PM

Besides RVDS there's always the free GNU compilers. Lots 'n lots. This looks promissing I think: http://www.codesourc...m/sgpp/lite/arm

#7 Illishar

Illishar

    Advanced Member

  • Members
  • PipPipPip
  • 146 posts

Posted 05 January 2011 - 04:24 PM

Yes, Visual C++ 2010 has implemented many of the new language and libraries defined by the upcoming C++0x proposed standard.


Does it have the proposed/optional Garbage Collector as well?

#8 Kenny Kerr

Kenny Kerr

    Member

  • Members
  • PipPip
  • 17 posts

Posted 05 January 2011 - 04:38 PM

Does it have the proposed/optional Garbage Collector as well?


No, it includes rvalue references (essential for move semantics and perfect forwarding), type inference (auto), lambda functions and expressions, trailing return types, nullptr, static assertions, new standard hash tables, regular expressions, shared_ptr and unique_ptr, function objects (kinda like C# delegates), type traits, and some others. It’s a great start. The next release should include most of the outstanding items and any changes once C++0x is finalized.

#9 Illishar

Illishar

    Advanced Member

  • Members
  • PipPipPip
  • 146 posts

Posted 06 January 2011 - 08:20 AM

It’s a great start.


Well, exploding complexity in order to fix up a language, sounds more like 'beginning to an end' to me :-/

But C++ could really use a refurbish, so it'll be very interesting to see if it sticks. (Eg. will it be implemented in GNU etc.)

#10 Kenny Kerr

Kenny Kerr

    Member

  • Members
  • PipPip
  • 17 posts

Posted 07 January 2011 - 07:14 PM

Well, exploding complexity in order to fix up a language, sounds more like 'beginning to an end' to me :-/

But C++ could really use a refurbish, so it'll be very interesting to see if it sticks. (Eg. will it be implemented in GNU etc.)


Many of the C++0x language features are already available in the GCC compiler.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.