Re: PicoGUI1 and 2
Micah Dowty <[email protected]>
| Newsgroups | gmane.comp.video.picogui.devel |
|---|---|
| Message-ID | <[email protected]> |
Well, I understand that at this time C++ is prohibitive in a lot of
embedded devices. The gamble is whether in a year or two it still will
be. If you think so, then I'll happily shelve my hopes of doing this in
C++ to gain a little more portability.
--Micah
On Thu, Apr 17, 2003 at 06:42:34PM +0200, Peter Graf wrote:
> Micah wrote:
>
> >> Once you start requiring a C++ cross-compiler, PicoGUI will immediately
> >> become uninteresting for many embedded targets. I was very interested
> >> in porting PicoGUI on two embedded platforms, but watching the direction
> >> of the ideas and the discussions for a while.
> >
> >Remember that pg2 won't be ready for use for at least a year. Will it be
> >possible to get a C++ compiler working on all embedded systems that
> >might want to use picogui then?
>
> I have come across several embedded targets worth a GUI, where C Compiler
> and Assembler is all you have. On some, there also is a C++ compiler, often
> GCC, but sometimes it can not be used because other project constraints
> enforce use of a different compiler.
>
> >The only tool being discussed here is the compiler.
>
> Yes, but IMHO that's enough to break the idea of a portable GUI with
> widespread use in the embedded sector.
>
> >Also note that even if we use C++, we won't use the C++ standard library.
> >Using C++ in this way, we get the benefit of exceptions and classes with
> >very little difference in binary size.
>
> I also use a C++ Compiler without standard C++ libs on some targets,
> those where I have eCos running, to be exact. I won't write or port
> C++ code though, because it takes away my flexibility to re-use the
> code on other embedded systems.
>
> >So the only reason this would be harmful is if the embedded system in
> >question doesn't have a C++ compiler. Almost all the systems I've seen
> >use gcc, so it should be easy to use g++ on them.
>
> I currently have a system, where even a reliable GCC only exists as a
> C compiler, not a C++ compiler. Moreover there are many embedded targets
> where you either have no GCC or can not use it, e.g. because the OS or
> other important code requires a different compiler.
>
> >If all you need is a way to draw primitives into overlapping windows,
> >use NanoX. If you need a complete GUI with a cool design, use PicoGUI :)
>
> To close the circle, even NanoX could be turned into a complete GUI if
> I had a C++ compiler :) (to compile FLTK)
>
> All the best
> Peter
>
>
--
"For every problem, there is a solution that is simple, elegant, and wrong."
-- H.L. Mencken
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf