# Copyright (C) [2020] Futurewei Technologies, Inc. All rights reverved.
#
# Licensed under the Mulan Permissive Software License v2.
# You can use this software according to the terms and conditions of the MulanPSL - 2.0.
# You may obtain a copy of MulanPSL - 2.0 at:
#
# https://opensource.org/licenses/MulanPSL-2.0
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR
# FIT FOR A PARTICULAR PURPOSE.
# See the MulanPSL - 2.0 for more details.
Let MAPLE_ROOT be the top directory for mapleall repository.
The directory structure as follows:
$MAPLE_ROOT
README.md : this file
Copyright : Copyright file
license : Mulan license file
doc : MapleIR documentation
: tutorial & FAQ
mapleall : maple compiler source
maple_engine : maple engine opcode header file
bin/ast2mpl : C frontend: clangAST to MapleIR
tools : ninja, gn and clangfe for C frontend
: downloaded by setup_tools.sh
Makefile : makefile
build : environment set up and build files
BUILD.gn : gn build file
bin : maple executables during make install
out : created during make
cd $MAPLE_ROOT
make setup
cd $MAPLE_ROOT
source envsetup.sh
TARGET VERSION
source envsetup.sh arm release
source envsetup.sh engine release
source envsetup.sh ark release
source envsetup.sh riscv release
make
make install
maple excutables are in $MAPLE_ROOT/bin directory
refer to examples/ for C language examples
cd examples/C
./maple_aarch64_with_ast2mpl.sh
./maple_aarch64_with_whirl2mpl.sh
./maple_riscv64_with_whirl2mpl.sh
refer to maple_engine git repository for java2asm.sh and asm2so.sh scripts
Please find step by step instructions to build Maple and run examples in the tutorial.md.
If we want to build Maple for RISC-V, please follow the instructions to prepare QEMU cross-compilation and execution environment.
You might need to install required packages like:
sudo apt-get install clang
sudo apt-get install libelf-dev
sudo apt-get install libssl-dev
Please refer to the FAQ page for anwswers to more questions and issues.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型