Modifications

Sauter à la navigation Sauter à la recherche
376 octets ajoutés ,  25 janvier 2015 à 16:11
Ligne 72 : Ligne 72 :     
== Logiciel MicroPython ==
 
== Logiciel MicroPython ==
Certainly!  Micro Python is a complete rewrite, from scratch, of the Python scripting language. It is written in clean, ANSI C and includes a complete parser, compiler, virtual machine, runtime system, garbage collector and support libraries to run on a microcontrollerThe compiler can compile to byte code or native machine code, selectable per function using a function decorator. It also supports inline assembler.  All compilation happens on the chip, so there is no need for any software on your PC.
+
Micro Python est évidemment une ré-écriture complète (en partant de rien) du langage de programmation Python. Il est écrit en C ANSI, proprement et inclus un parser complet, compilateur byte-code Python, une machine virtuelle, un environnement d'exécution, un ''garbage collector'' (dit 'ramasse miette' en France) et support de bibliothèque... le tout fonctionnant sur le microcontrolleurLe compilateur peu générer du ''byte code'' ou du code machine natif (configurable par fonction en utilisant un décorateur Python). Micro Python supporte également l'''inline assembler''Toutes les taches de compilations sont effectuées sur le microcontroleur... pas besoin de logiciel sur le PC.
   −
Micro Python currently supports 32-bit ARM processors with the Thumb v2 instruction set, such as the Cortex-M range used in low-cost microcontrollers. It has been tested on an STM32F405 chip.
+
Micro Python supporte actuellement les processeurs ARM 32-bits avec le jeu d'instruction Thumb v2, comme c'est le cas pour la gamme des microcontrôleurs Cortex-M. Micro Python a été testé sur la puce STM32F405.
   −
Micro Python has the following features:
+
Micro Python dispose des fonctionnalités suivantes:
 
+
* Implémentation {{underline|complète}} de la grammaire de Python 3 (mais pas encore toutes les bibliothèques standard de Python).
* Full implementation of the Python 3 grammar (but not yet all of Python's standard libraries).
+
* Implémentation d'un lexer (''analyse syntaxique''), parser, compilateur, machine virtuelle et environnement d'exécution.
* Implements a lexer, parser, compiler, virtual machine and runtime.
+
* Peut exécuter des fichier et dispose également d'une interface en ligne de commande (REPL ou read-evaluate-print-loop boucle-lire-évaluer-imprimer).
* Can execute files, and also has a command line interface (a read-evaluate-print-loop, or REPL).
   
* Python code is compiled to a compressed byte code that runs on the built-in virtual machine.
 
* Python code is compiled to a compressed byte code that runs on the built-in virtual machine.
 
* Memory usage is minimised by storing objects in efficient ways.  Integers that fit in 31-bits do not allocate an object on the heap, and so require memory only on the stack.
 
* Memory usage is minimised by storing objects in efficient ways.  Integers that fit in 31-bits do not allocate an object on the heap, and so require memory only on the stack.
29 917

modifications

Menu de navigation