GithubHelp home page GithubHelp logo

wvmcc's Introduction

WVMCC

WasmVM 打造的編譯器

A C compiler for WasmVM

先備條件 Prerequisite

  • CMake >= 3.16

  • 支援 C11 和 C++20 的 C/C++ 編譯器

  C/C++ compiler supporting c11 and c++20 standard with Standard Library

注意事項 Notice

  1. 在文件方面,本專案以 台灣正體中文 為主要使用語言,英文為次要使用語言,其他語言 (例如: 簡體中文)僅能做為參考或翻譯使用。

  This project uses "Taiwan Traditional Chinese" as primary, English as secondary language in documents.

Other languages (Ex: Simplified Chinese) are only used as references or translations.

編譯 Build

一般模式 Normal build

  1. 執行 CMake

mkdir build && cd build && cmake ..

  1. 執行 Make

make -j4

  1. 安裝

make install

安裝 & 執行 Install & run

  1. 安裝

make install

  1. 執行

wvmcc

wvmcc's People

Contributors

luishsu avatar kevinbird61 avatar

Stargazers

Eason Wang avatar  avatar

Watchers

James Cloos avatar Scotty Franzyshen avatar

Forkers

kevinbird61

wvmcc's Issues

[CC] [WIP] 前處理器提示 Preprocessor hints

工作描述

經過前處理器處理後,所有原始碼都已經包含進同一個檔案。前處理器行號和檔名的會留下一個提示來表示原本的行號和檔名:

# 行號 "檔案絕對名稱" 標示

標示部份

1: 進入這個檔案

2: 返回這個檔案

目前並沒有處理這個提示,需要在 lex 部份把他處理完成

[CC] 語意分析 Sementic Analysis

以下是語意分析的工作進度

External definitions

  • translation_unit
  • external_declaration
  • function_definition
  • declaration_list

Declarations

  • declaration
  • declaration_specifiers
  • init_declarator_list
  • init_declarator
  • storage_class_specifier
  • type_specifier
  • struct_or_union_specifier
  • struct_or_union
  • struct_declaration_list
  • struct_declaration
  • specifier_qualifier_list
  • struct_declarator_list
  • struct_declarator
  • enum_specifier
  • enumerator_list
  • enumerator
  • atomic_type_specifier
  • type_qualifier
  • function_specifier
  • alignment_specifier
  • declarator
  • direct_declarator
  • pointer
  • type_qualifier_list
  • parameter_type_list
  • parameter_list
  • parameter_declaration
  • identifier_list
  • type_name
  • abstract_declarator
  • direct_abstract_declarator
  • typedef_name
  • initializer
  • initializer_list
  • designation
  • designator_list
  • designtor
  • static_assert_declaration

Expressions

  • primary_expression
  • generic_selection
  • generic_assoc_list
  • generic_association
  • postfix_expression
  • argument_expression_list
  • unary_expression
  • unary_operator
  • cast_expression
  • multiplicative_expression
  • additive_expression
  • shift_expression
  • relational_expression
  • equality_expression
  • and_expression
  • exclusive_or_expression
  • inclusive_or_expression
  • logical_and_expression
  • logical_or_expression
  • conditional_expression
  • assignment_expression
  • assignment_operator
  • expression
  • constant_expression

Statement

  • statement
  • labeled_statement
  • compound_statement
  • block_item_list
  • block_item
  • expression_statement
  • selection_statement
  • iteration_statement
  • jump_statement

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.