[] Flutter Dart language (Dart language features | JIT-time compilation | AOT static compilation)



I. Dart language features



. 1 Dart language features:

① language type: a strongly typed language;

② compile-time type: the JIT time compiler; (compiled types JIT / AOT two types)


2. language type: strongly typed and a weakly typed language;

① strongly typed language: Each variable must specify the type;

② weakly typed language: type variables can not be specified in advance;



II. JIT-time compilation



JIT compiler type: Instant compiled, he explains while running the program runs;

① running at low efficiency: during program execution, while the need to explain, while the implementation of the efficiency is naturally low, sometimes calling AOT language in JIT languages, can greatly improve efficiency, such as in Java using JNI to call C;

② portability: the JIT type of portability relatively strong language, such as Java, using Java compiled bytecode files can be executed on Android, Windows, Linux, MAC, do not compile again;



III. AOT statically compiled



AOT compilation types: static compiler when developing code that will be compiled into machine code; not portable across platforms; high-efficiency operation;

① run aging rate: During the development phase, the code is compiled into machine code, the implementation process is required only if you can, high efficiency;

② not portable: such as C / C ++ compiler a static library or a dynamic library, can only be a run on the CPU architecture / systems, such as compiling the ARM architecture static library can not x86 platform running (different CPU architectures), compile the library can not run Linux (system dependent libraries different) on Windows;

Published 307 original articles · won praise 1043 · Views 1.7 million +

Guess you like

Origin blog.csdn.net/han1202012/article/details/104892741