顯示具有 Compiler 標籤的文章。 顯示所有文章
顯示具有 Compiler 標籤的文章。 顯示所有文章

2018年2月4日 星期日

Optimizing WebGL

use emscripten
編譯OpenGL ES "-s FULL_ES2=1"

kripken 

2018年1月28日 星期日

WebAssembly

Download

$ git clone https://github.com/juj/emsdk.git
$ cd emsdk
$ ./emsdk install latest
$ ./emsdk activate latest

source
$ source ./emsdk_env.sh --build=Release

compile
emcc hello.c -s WASM=1 -o hello.html

$mv hello.html /var/www/html/.

open it in your browser.

2013年10月23日 星期三

compiler第九章Machine-Independent Optimization

code optimization分成兩種 local和global

local code optimization在section 8.5

大多數的global optimization是data-flow analysis

9.1 The Principal Sources of Optimization

Semantics-Preserving Transformations
1)common-subexpression elimation
2)copy propagation
3)dead-code elimination
4)constant folding
5)code motion
6)induction variables and reduction in strength

2013年3月24日 星期日

Compiler(1)


第一章

Programming languages are notations for describing computations to people
and to machines.
It first must be translated into a form in which it can be executed by a computer.
The software systems that do this translation are called compilers.

a compiler is a program that can read a program in one lan­
guage - the source language - and translate it into an equivalent program in
another language - the target language.


f we open up this box
a little, we see that there are two parts to this mapping: analysis and synthesis .The analysis part
is often called the front end of the compiler; the synthesis part is the back end.