---
tags: 活動共筆
---
# 20211101 Intro to MicroPython (MP) - The porting guide #1
## Q&A: gcc & make
:::info
:information_source: 60% users havn't heard about gcc/make before
:::
## Introduction
**Founder**: Demin George, AUS
*Intro video*
## Principle

Dotted Line area: happended in MCU hardware
User input into Serial COM that controls `REPL(Read Evaluate Print Loop)`, which is able to convert `Byteode` to `Machine Code` that is executable in Hardware
## Internla Architecutre

left portion: translate code
right portion: execute machine code on MCU
## Keywords
1. **Bytecode**

2. **QSTR (uniQue STRing)**

q string is similar to machine code, but with light weight and faster execution
3. **REPL (Read Eval Print Loop)**

4. **Frozen Module**

object code = machine code
frozon module = byte code (between Python & machine code)
## Example Script

## How to develop a MP Project

## Agenda

1. Realtek & MP SDK have different build system,
### Environment Setup
#### Keywords
- GCC: GNU Compiler Collection
- GNU: GNU Not Unix
- Popular Toolchain for GCC, etc, keychain that contains multiple keys to solve compilation problems
- Make -- GNU Make
- manage and generate executable (.exe) files
- What is Makefile?
#### Software Related
- Cygwin
- POSIX-compatible programming and runtime environemtn that urns natively on Microsoft Windows
- apt-get packages
- make + bc (mathematical tool)
- Python 3
#### Example Code

- Makefile + xm.c + hy.c + lib.h
- `make` vs `make all`
https://blog.csdn.net/tfcy694/article/details/91898114
`make` will execute the 1st item in the list
### Ameba Offcial SDK

### MP Official SDK

