1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639
|
<!-- Title = FAQ -->
<TABLE BORDER=0 CELLSPACING=5 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#3366FF" NOSAVE >
<TR NOSAVE>
<TD NOSAVE>
<CENTER><FONT COLOR="#FFFFFF" SIZE=+3><B>Frequently Asked Questions</B></FONT></CENTER>
</TD>
</TR>
</TABLE>
<BR><BR><BR>
<TABLE BORDER=0 COLS=1 WIDTH="100%" BGCOLOR="#3366FF" NOSAVE >
<TR NOSAVE>
<TD NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE="+2">Table of contents</FONT></FONT></TD>
</TR>
</TABLE>
<P>
<TABLE BORDER=0 >
<TR>
<TD><B>Q01:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q01">
Is it possible to have the complete <B>Eiffel source code of
SmartEiffel</B>?</A> </TD>
</TR>
<TR>
<TD><B>Q02:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q02">
Is it possible to use SmartEiffel for <B>large/commercial applications</B>?</A> </TD>
</TR>
<TR>
<TD><B>Q03:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q03">
Is it possible to do <B>incremental compilation</B> with SmartEiffel?</A> </TD>
</TR>
<TR>
<TD><B>Q04:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q04">
Is there a SmartEiffel <B>mailing list</B>?</A> </TD>
</TR>
<TR>
<TD><B>Q05:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q05">
What is the semantics (meaning) of a <B>manifest string</B>?</A> </TD>
</TR>
<TR>
<TD><B>Q06:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q06">
Is it difficult to switch from <B>ISE to SmartEiffel</B>?</A> </TD>
</TR>
<TR>
<TD><B>Q07:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q10">
Is it possible to use the <B>Boehm-Demers-Weiser garbage collector</B> with SmartEiffel?</A> </TD>
</TR>
<TR>
<TD><B>Q08:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q08">
Why don't you <B>post more messages</B> in newsgroups and/or mailing lists?</A> </TD>
</TR>
<TR>
<TD><B>Q09:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q09">
Is there a mechanism to <B>pre-compile</B> libraries?</A> </TD>
</TR>
<TR>
<TD><B>Q10:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q10">
<B>How is SmartEiffel compiled</B>?</A> </TD>
</TR>
<TR>
<TD><B>Q11:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q11">
<B>How do I keep informed</B> about SmartEiffel?</A> </TD>
</TR>
<TR>
<TD><B>Q12:</B><BR> </TD>
<TD><A HREF="SmartEiffelFAQ.html#Q12">
What <B>documentation</B> is provided with SmartEiffel?
<BR>
Where can I find <B>Eiffel documentation</B>?</A> </TD>
</TR>
<TR>
<TD><B>Q13:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q13">
<B>How can I help </B>?</A> </TD>
</TR>
<TR>
<TD><B>Q14:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q14">
Why don't you <B>change this and add that</B>?! It would be much
better/cooler/whatever !</TD>
</TR>
<TR>
<TD><B>Q15:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q15">
How to customise the <B>Garbage Collector</B> for a new architecture?</TD>
</TR>
<TR>
<TD><B>Q16:</B></TD>
<TD><A HREF="SmartEiffelFAQ.html#Q16">
What is <B>SmallEiffel</B> compared to <B>SmartEiffel</B>? </TD>
</TR>
</TABLE>
</P>
<TABLE BORDER=0 COLS=1 WIDTH="100%" BGCOLOR="#3366FF" NOSAVE >
<TR NOSAVE>
<TD NOSAVE><FONT COLOR="#FFFFFF"><FONT SIZE="+2">Questions and answers</FONT></FONT></TD>
</TR>
</TABLE>
<P>
<TABLE BORDER=0 >
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q01"></A><B>Q01:</B></TD>
<TD>Is it possible to have the complete Eiffel <B>source code of SmartEiffel</B>? </TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A01:</B></TD>
<TD>Since it is the GNU Eiffel Compiler, the complete source
code of SmartEiffel is of course in the
distribution. The source code for additional libraries is also provided.</TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q02"></A><B>Q02:</B></TD>
<TD>Is it possible to use SmartEiffel for <B>large/commercial applications</B>? </TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A02:</B></TD>
<TD>It is indeed possible to use SmartEiffel for a large application.
An Eiffel compiler is a really big project and SmartEiffel itself is fully
written in Eiffel.
SmartEiffel is completely free and any private company can use
SmartEiffel freely, and distribute (or sell) freely the
products made with it.
They do not have to pay royalties.
Also note that <B>only classes which are closely related to the
compiler itself are under GPL</B> (actually, only the classes of directory
<TT>SmartEiffel/tools</TT> and <TT>install.e</TT> are under GPL).
The other classes are <EM>not</EM> under GPL in order to let people completely
free (i.e. all classes of <TT>SmartEiffel/lib</TT>).
Always keep in mind that SmartEiffel doesn't come
with any warranty (please read the COPYING file in the distribution).
As explained in the header of non-GPL files, the only important thing
is to kept the header unaltered when the corresponding source file
is provided in your product.
For extended support, donations as well as consulting, see
<A HREF="support.html">here</A>.
</TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q03"></A><B>Q03:</B></TD>
<TD>Is it possible to do <B>incremental compilation</B> with SmartEiffel? </TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A03:</B></TD>
<TD>Because of the SmartEiffel type inference mechanism,
SmartEiffel always produces all needed C files from scratch. As old C files
are automatically saved, only modified C files are recompiled.
See <TT><A HREF="compile.html">man/compile</A></TT> for details. </TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q04"></A><B>Q04:</B></TD>
<TD>Is there a SmartEiffel <B>mailing list</B>?</TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A04:</B></TD>
<TD>Yes! SmartEiffel users and developers can share their experiences
and ideas by subscribing to the
<A HREF="http://SmartEiffel.loria.fr/support/mailing-list.html">SmartEiffel official mailing list</A>.
</TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q05"></A><B>Q05:</B></TD>
<TD>What is the semantics (meaning) of a <B>manifest string</B>? </TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A05:</B></TD>
<TD>
Bertrand Meyer clearly explains the semantics of manifest strings in
section 18.5 on page 653 (and previous sections for background) of
Object-Oriented Software Construction (Second Edition). A manifest string
expression (in declaration) is not a constant but a reference to a shared
object. A variable initialised with a manifest string is equivalent to a
once function, so the string may change! For example:
<BR>
<BR><TT> Message: STRING is "abc"</TT><BR>
<BR>
is equivalent to
<BR>
<BR><TT> Message: STRING is</TT>
<BR><TT> once</TT>
<BR><TT> !!Result.make (3)</TT>
<BR><TT> Result.append_character ('a')</TT>
<BR><TT> Result.append_character ('b')</TT>
<BR><TT> Result.append_character ('c')</TT>
<BR><TT> end</TT><BR>
<BR>
SmartEiffel implements manifest strings in this way.
<BR>
<BR>
Be aware that manifest string expression may be written in two ways:
<BR>
<BR><TT> str := "abc"</TT><BR>
This is the standard manifest string expression.
<BR>
<BR><TT> str := once "abc"</TT><BR>
This is the once manifest string expression.
<BR>
In the first case, <B>new string is allocated</B> each time the line is
executed. In the second case you've got a once result like in declaration
described above, so the string may have changed.
See <A HREF="compile_to_c.html">man/compile_to_c</A> for the flag
-manifest_string_trace which help finding memory leaks from non-once manifest
strings.
</TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q06"></A><B>Q06:</B></TD>
<TD>Is it difficult to switch from <B>ISE to SmartEiffel</B>? </TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A06:</B></TD>
<TD>If your original ISE software only uses simple types like INTEGER,
STRING, ARRAY, BOOLEAN, CHARACTER and DOUBLE, it is usually very simple.
It is a little bit difficult for simple input/output (used with predefined
<EM>io</EM>) because some features have different names. If your original software
heavily relies on the EiffelBase library, it may be very difficult. For
example, one must keep in mind that SmartEiffel.ARRAY inherit SmartEiffel.COLLECTION
and that ISE library also have a class COLLECTION. By the way, subclasses
of ISE.COLLECTION cannot be used. The ISE.LINKED_LIST can be used in conjunction
with SmartEiffel.ARRAY because ISE.LINKED_LIST do not inherit ISE.COLLECTION
(no clash). </TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q07"></A><B>Q07:</B></TD>
<TD>Is it possible to use the <B>Boehm-Demers-Weiser garbage collector</B>
with SmartEiffel? </TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A07:</B></TD>
<TD>Yes.
<BR>You just have to disable the generation of the GC by SmartEiffel
(option <IT>-no_gc</IT>) and replace it by the BDW library.
Note that the BDW GC
can be easily added because SmartEiffel only uses malloc/realloc/calloc.
<BR>You can download the BDW library from :
<DL COMPACT>
<DD>
<A HREF="http://www.hpl.hp.com/personal/Hans_Boehm/gc/">http://www.hpl.hp.com/personal/Hans_Boehm/gc</A> </DD>
</DL>
How to integrate the Boehm-Demers-Weiser garbage collector
with SmartEiffel (from a message of Dietmar Wolz) :
<OL>
<LI>
Make the <TT>gc.a</TT> file from the BDW package.
Then move this <TT>gc.a</TT> file to <TT>/usr/lib/libgc.a</TT>.
</LI>
<LI>
Move <TT>gc.h</TT> the to working directory and add the
following lines: </LI>
<BR><TT>#define malloc(n) GC_malloc(n) </TT>
<BR><TT>#define calloc(m,n) GC_malloc((m)*(n)) </TT>
<BR><TT>#define realloc(p,n) GC_realloc((p),(n)) </TT>
<BR><TT>#define free(p) GC_free(p) </TT>
<LI>
instead of calling </LI>
<BR><TT> "compile -o executable -boost -O root" </TT>
<BR>now call
<BR><TT> "compile -o executable -boost -O root -no_gc -lgc -include
gc.h" </TT></OL>
</TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q08"></A><B>Q08:</B></TD>
<TD>Why don't you <B>post more messages</B> in newsgroups and/or mailing lists?</TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A08:</B></TD>
<TD>First, because we strongly believe that too much information kills information.
Scientists call this "cognitive overload". :)<BR>
Second, because we don't have the time. It takes an awful amount of time to follow
discussions, whatever their quality. We try to do that. But it's even more
time-consuming to be part of them. So, we often have to choose between
posting/mailing, and working directly on SmartEiffel. Since our mailboxes tend
to overflood, we generally choose the latter :)
</TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q09"></A><B>Q09:</B></TD>
<TD>Is there a mechanism to <B>pre-compile</B> libraries?</TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A09:</B></TD>
<TD>No, there is no such mechanism in SmartEiffel. But if you're concerned
about compilation speed, don't worry, pre-computed libraries are not the only way to be fast !
Just try SmartEiffel, and you'll see :)
</TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q10"></A><B>Q10:</B></TD>
<TD><B>How is SmartEiffel compiled</B>?</TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A10:</B></TD>
<TD>With Eiffel optimisation options -boost and -no_gc. The garbage collector is
indeed useless on the SmartEiffel commands: since
SmartEiffel did not include a GC in its first versions, we were very careful
about memory when we developed it. <BR>
With C compilation optimisations turned on (it depends on the C compiler used;
we generally use gcc).<BR>
The resulting executables are stripped.
</TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q11"></A><B>Q11:</B></TD>
<TD><B>How do I keep well informed</B> about SmartEiffel?</TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A11:</B></TD>
<TD>The best way is to keep an eye on our web pages,
more especially on the <A HREF="http://SmartEiffel.loria.fr/general/whatsnew.html">What's New? page</A>
and the <A HREF="miscHISTORY.html">History of Changes</A>.
<BR>
People who want detailed information may also decide to stay tuned to
<A HREF="http://SmartEiffel.loria.fr/support/mailing-list.html">the SmartEiffel mailing-list</A> or
even look at the <A HREF="http://SmartEiffel.loria.fr/support/bug_report.html">bug-tracking system</A>.
</TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q12"></A><B>Q12:</B></TD>
<TD>
What <B>documentation</B> is provided with SmartEiffel?
<BR>
Where can I find <B>Eiffel documentation</B>?
</TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A12:</B></TD>
<TD>The documentation provided with SmartEiffel is a transcript of what
you can find on the original SmartEiffel Web site, at
<A HREF="http://SmartEiffel.loria.fr">http://SmartEiffel.loria.fr</A>.
It is related only to the use and internals of SmartEiffel (yes,
we know we still have to improve it ;) ).
<BR>
For information and documentation about the Eiffel language, check
the links on our
<A HREF="http://SmartEiffel.loria.fr/general/resources.html"> Internet resources page</A>.
Note that we are not aware of any complete Eiffel language manual
freely available on the Web (yet?).
</TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q13"></A><B>Q13:</B></TD>
<TD>
<B>How can I help </B>?
</TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A13:</B></TD>
<TD>
The best way to help SmartEiffel and its users is probably to <B>pick up
some area you're interested in, and develop</B> with SmartEiffel your own library,
application, tool, extension, etc., releasing it to other
users.
<BR>
To avoid duplicate efforts, we suggest you have a look to
<A HREF="http://SmartEiffel.loria.fr/general/repository.html">what other people are already doing
around SmartEiffel</A> and help them if something
that's of interest to you is already under work.
There are actually very good things in there, some we were not even
aware of, when they were under development ! :)
<BR>
You may have a look to the <A HREF="http://SmartEiffel.loria.fr/papers/future.html">future plans</A>
and have a look into the bugs database (access via the <A HREF="http://SmartEiffel.loria.fr/support/bug_report.html">bug report page</A> on the SmartEiffel web site.
<BR>
Finally, you may also consider funding the development of particular
features you would like to have.
<BR>
Another very good way to help us is to follow the
<A HREF="http://SmartEiffel.loria.fr/support/bug_report.html">bug report guidelines</A> when you
find some problem with SmartEiffel :))
</TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q14"></A><B>Q14:</B></TD>
<TD>
Why don't you <B>change this and add that</B>?! It would be much
better/cooler/whatever !
</TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A14:</B></TD>
<TD>
People must understand that we can't always do everything. We simply
can't. Because we don't have the time. Whether we like it or not, we
also have other things to do than provide free stuff, modify our
compiler and/or libraries to please everybody. We do as much as we
can, but we don't do miracles, sorry.
<BR>
Since SmartEiffel is free of charge and open-source, people who do
need things we don't provide can always implement them and have them
benefit everybody. A good way to do this is to start working on it,
and ask other people (i.e. not the SmartEiffel team ;) ) to join and
help. See the <A HREF="SmartEiffelFAQ.html#Q13">"How can I help?" question</A>.
<BR>
Alternatively, someone or some company who does need us to implement
something may always consider funding a bit the development of
SmartEiffel... After all, we've even heard that some people were
selling software and making a bit of money with it... ;)))
</TD>
</TR>
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q15"></A><B>Q15:</B></TD>
<TD>
How to customise the <B>Garbage Collector</B> for a new architecture?
</TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A15:</B></TD>
<TD>
If your architecture need special handling to get the GC working
(because the stack is not contiguous, because some registers are not
written on the stack on `setjmp'...) then you need to implement function
`mark_stack_and_registers' for your system in the file
<TT>SmartEiffel/sys/runtime/c/gc_lib.c</TT>.
<BR>
If you get some message telling you that the stack direction is wrong, then
you should change macro definition to use the other generic code
(there is one generic code for each stack order).
<BR>
In order to check the GC, you should be able to run all files of
the <TT>SmartEiffel/misc/benchmarks/gc</TT> directory.
</TD>
</TR>
<!-------------------------------------------------------------------------->
<TR>
<TD> </TD>
</TR>
<TR>
<TD VALIGN=TOP><A NAME="Q16"></A><B>Q16:</B></TD>
<TD>What is <B>SmallEiffel</B> compared to <B>SmartEiffel</B>?</TD>
</TR>
<TR>
<TD VALIGN=TOP><B>A16:</B></TD>
<TD> Sma<B>ll</B>Eiffel is the former name of the Sma<B>rt</B>Eiffel
project. We changed because we thought the compiler had become smart
enough ;) For a list of changes between the last version of
SmallEiffel and the first one of SmartEiffel, have a look
<A HREF="http://SmartEiffel.loria.fr/misc/HISTORY.html#1.0">
there</A>.
</TD>
</TR>
<!-------------------------------------------------------------------------->
</TR>
</TABLE>
</P>
<CENTER><IMG SRC="se-line.gif" ALT="[Line]" ></CENTER>
<CENTER><I><FONT SIZE=-1>Copyright © Dominique COLNET and Suzanne
COLLIN - <A HREF="mailto:SmartEiffel@loria.fr"><SmartEiffel@loria.fr></A><BR>
<!-- hhmts start -->
Last modified: Mon May 5 10:45:51 CEST 2003
<!-- hhmts end -->
<BR>
</FONT></I></CENTER>
|