wiki:DevelModuleList

Version 2 (modified by moo, 8 years ago) (diff)

flatten

Module List

Cacher

Cache opcode into shared memory.

Compiler Sandbox

Setup sandbox for php compiler.

Files: trunk/utils.c trunk/utils.h

Struct Copying

To copy struct safely and efficiently. (xc_processor_store_xc_entry_t + xc_processor_restore_xc_entry_t)

  • Calc size of the whole compiler result. (xc_calc_xc_entry_t)
  • Allocate memory in shm with this size. (xc_mem_malloc)
  • Copy to shm after compile. (xc_store_xc_entry_t)
  • Copy from shm on cache hit. (xc_restore_xc_entry_t)

Files: trunk/processor/

Shared Memory

Shared memory provider. (aka. shm)

Only mmap is supported as shm currently.

Files: trunk/myshm.h(common proto) trunk/mmap.c

Locking

Lock provider, to operate shm atomicly.

Memory Manager

Memory manager, working on top of shm + lock. It's something like malloc/emalloc family, but works on shm.

Files: trunk/mem.h trunk/mem.c

Administration

XCache administration scripts.

Files: trunk/admin/

Optimizer

To optimize opcode. (N/A)

Coverager

Collect coverage info.

Coverage Viewer

Produce visual output from the coverage data.

Live Test Runner

An LivingTest? framework that help to hit your code generating coverage data. (TOSHARE)

Assembler

Assemble from asm code to opcode data. (N/A)

Disassembler

Disassemble opcode data to asm code.

Decompiler

Decompile opcode data to php code using Disassembler.

Encoder

Encode opcode data to file. (N/A)

Decoder

Decode opcode data from file. (aka. loader) (N/A)

Attachments (1)

Download all attachments as: .zip