Type 編譯器

編譯器設計

編譯器簡介

高階語言

語法理論

剖析器

語意理論

符號表

直譯器

型態系統

中間碼

目標語言

最佳化

錯誤處理

進階議題

原始碼下載

程式實作

C 語言

案例研究

JavaScript

V8

Lua

Oberon

NeoPascal

pcc

tcc

gcc

C--

Lex

YACC

AntLR

LLVM

CLang

訊息

相關網站

參考文獻

最新修改

簡體版

English

輸入檔案:

int x=3, y=5, z;
if ((x+y)>6)
  z = 0;
else
  z = 1;

int i=0, s;
while (i<100) {
    s = s + i;
    i++;
}

int sum(int n) {
    for (i=0; i<n; i++)
        s = s + i;
    return s;
}

void swap(int a, int b) {
    t = a;
    a = b;
    b = t;
}

total=sum(10);

swap(x, y);

Facebook

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License