runtime corelib

17 views
Skip to first unread message

Peter Kümmel

unread,
Dec 10, 2011, 4:25:54 PM12/10/11
to General Dart Discussion
I've build the runtime without corelib support and wonder what it could be used for.
Are there any tests which use such a setup? I only see binaries which have corelib:
'dart' loads it via a snapshot and and 'dart_no_snapshot' used the *_withcore libraries.

When I process a dart script the program exits with
runtime/vm/bootstrap_nocorelib.cc:25: error: unreachable code

I assume I have cannot use bin/main.cc for a corelib-less binary.

When corelib is so essential to the runtime, shouldn't corelib/ not
be in the runtime folder? I stumbled over this because I've a checkout
of runtime only and then I could not build with corelib support.

Peter


Florian Loitsch

unread,
Dec 12, 2011, 5:41:28 AM12/12/11
to Peter Kümmel, General Dart Discussion
On Sat, Dec 10, 2011 at 22:25, Peter Kümmel <synth...@gmx.net> wrote:
I've build the runtime without corelib support and wonder what it could be used for.
Probably not a lot of things.
 
Are there any tests which use such a setup? I only see binaries which have corelib:
'dart' loads it via a snapshot and and 'dart_no_snapshot' used the *_withcore libraries.

When I process a dart script the program exits with
   runtime/vm/bootstrap_nocorelib.cc:25: error: unreachable code

I assume I have cannot use bin/main.cc for a corelib-less binary.

When corelib is so essential to the runtime, shouldn't corelib/ not
be in the runtime folder? I stumbled over this because I've a checkout
of runtime only and then I could not build with corelib support.
The corelib is partially shared between the DartC compiler, Frog and the Runtime. This is, why it the corelib directory is not inside the runtime folder. Each of these Dart-engines only have some parts of the corelib specialized (e.g. runtime/lib, or compiler/lib).

// florian



Peter





--
Give a man a fire and he's warm for the whole day,
but set fire to him and he's warm for the rest of his life. - Terry Pratchett

Peter Kümmel

unread,
Dec 12, 2011, 4:26:04 PM12/12/11
to General Dart Discussion
On 12.12.2011 11:41, Florian Loitsch wrote:
>
> The corelib is partially shared between the DartC compiler, Frog and the
> Runtime. This is, why it the corelib directory is not inside the runtime
> folder. Each of these Dart-engines only have some parts of the corelib
> specialized (e.g. runtime/lib, or compiler/lib).

Thanks for the explanation. In the meantime I also checkout corelib
into my git repository.

Peter

Reply all
Reply to author
Forward
0 new messages