Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Eiffel > Re: embedded or...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 12 Topic 903 of 917
Post > Topic >>

Re: embedded or real-time project using Eiffel

by "Emmanuel Stapf [ES]" <manus_no_spam@[EMAIL PROTECTED] > Feb 19, 2008 at 09:00 AM

> But this will result again in a comparision of the current available
> runtime libraries. Do they allow multi threading, coroutines, signal
> handling etc.  For SmartEiffel the answer is clearley no and at least
> coroutines and signal handling is also not possible with EiffelStudio.
> At least this was with 5.3.

I'm not sure what is not working with EiffelStudio in the area of signal 
handling as we do support signals, they are just transformed into 
exceptions. And if you want to ignore a signal you have the UNIX_SIGNALS 
class for that (although called UNIX it works on Windows but with a 
restricted set of signals).

> Oh yes i forgot one very serious problem with Eiffel. It compiles to C
> and there is no way to tell the compiler to generate a "volatile"
> specifier for variables. I guess this alone is enough to say that the
> language itself will not work well with typical real-time and embedded
> uses. I asked exactly this question in this newsgroup before:
> 
>
http://groups.google.com/group/comp.lang.eiffel/browse_thread/thread/15d2767018f297c1/af4f17416c6c8425?lnk=gst&q=llothar#af4f17416c6c8425

There is no such thing in Eiffel for the good reasons that it was evil 
from C to propose such a thing. Everything should have the semantic of 
volatile and only when the C compiler can assure at 100% that it is ok 
to not refetch data from memory can he do the optimization. That was the 
idea of the register keyword in the old days because compiler needed 
help to see if they didn't have to refetch but it looks like the C 
standard went in the complete opposite direction.

In Eiffel, the memory model being assumed is the one that you always 
fetch the data where it is. So there should not be any volatile issue.

And if you have data shared among threads, the literature will say that 
you should always use synchronization routines unless you can prove it 
otherwise by testing on your specific platform/C compiler.

Regards,
Manu




 12 Posts in Topic:
embedded or real-time project using Eiffel
=?ISO-8859-15?Q?Daniel_Kl  2008-02-18 13:15:44 
Re: embedded or real-time project using Eiffel
"Emmanuel Stapf [ES]  2008-02-18 10:20:58 
Re: embedded or real-time project using Eiffel
llothar <llothar@[EMAI  2008-02-18 12:22:29 
Re: embedded or real-time project using Eiffel
llothar <llothar@[EMAI  2008-02-19 06:04:52 
Re: embedded or real-time project using Eiffel
llothar <llothar@[EMAI  2008-02-19 06:06:11 
Re: embedded or real-time project using Eiffel
"Emmanuel Stapf [ES]  2008-02-19 09:00:05 
Re: embedded or real-time project using Eiffel
llothar <llothar@[EMAI  2008-02-19 09:31:12 
Re: embedded or real-time project using Eiffel
"Emmanuel Stapf [ES]  2008-02-26 10:03:57 
Re: embedded or real-time project using Eiffel
llothar <llothar@[EMAI  2008-02-27 04:25:51 
Re: embedded or real-time project using Eiffel
Marco <prenom_nomus@[E  2008-03-08 03:53:58 
Re: embedded or real-time project using Eiffel
Andrew Reilly <andrew-  2008-02-19 05:04:35 
Re: embedded or real-time project using Eiffel
David Thompson <dave.t  2008-03-02 22:40:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 3:47:09 CDT 2008.