Which native programming language is Flutter's code compile to?

Issue

Using the Dart language allows Flutter to compile the source code ahead-of-time to native code.

I want to know which native language is it compiled to for different platforms.

Android- Is it Java or Kotlin?

iOS – Is it swift or objective c?

Web – is it Javascript or angular?

I can find everywhere that it’s compiled to native code but couldn’t find exactly which native programming language it is compiled to!

Solution

Except for the web, where Dart is transpiled to JavaScript, Dart is not transpiled to another human-readable programming language. For debug builds, Dart is compiled to Dart bytecode run through the Dart VM. For release builds, it’s compiled to "native code", which means it’s machine code for the hardware (e.g. ARM instructions or x86-64 instructions).

Answered By – jamesdlin

Answer Checked By – Dawn Plyler (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *