On Mon, 18 Feb 2008 12:22:29 -0800, llothar wrote:
> On 18 Feb., 19:15, Daniel Klünder <kluen...@[EMAIL PROTECTED]
> wrote:
>> Hi all,
>>
>> does anyone know of an embedded or real-time project out there which is
>> using Eiffel? I've heard of HP using Eiffel for their printers
>> (seehttp://archive.eiffel.com/eiffel/projects/hp/creel.html),
but it
>> seems this information is a little outdated.
>>
>> What is your experience with performance of Eiffel programs in terms of
>> memory footprint and execution speed?
>
> I think the most important for this would be a runtime that allows you
> to program
> in a C style with explicit memory management and without GC.
>
> I would like to see something like this. But it does not yet exist in
> our solar system.
If you're keen to program in C style with explicit memory management,
then there are several (many!) choices available: most languages designed
before 1990 should fit the bill (but not most of the lisp family, of
course). Fortran and Forth are extreme cases: only stack and globals.
Pascal or Modula-2 might suit an Eiffeler a little better. There's C, C+
+ and Objective-C, of course. If you were really keen to manually manage
objects, it might be possible to use SmallEiffel with the "no-GC" option:
just allocate pools of objects at startup and be careful to *never* make
a new object after that. Doesn't sound like much fun, IMO.
On the other hand, there is quite a bit of embedded work going on in
systems that *do* use garbage collection. Perhaps not PIC and 8051-level
embedded, but if you can put a full Unix distribution into a $100 phone
(and many are exactly that), then a garbage collector really isn't going
to be much of a worry. Go with the dynamic memory goodness and write
good, clean code that someone will thank you for, when they have to
extend it, years later.
Cheers,
--
Andrew


|