资 源 简 介
Introduction
Asmpure is a reimplementation and an enhancement of SoftWire in C for compiling assembly code. It can be used in projects to generate x86 machine code at run-time as an alternative to self-modifying code. Scripting languages might also benefit by using Asmpure as a JIT-compiler back-end. It also allows to eliminate jumps for variables which are temporarily constant during run-time, like for efficient graphics processing by constructing an optimised pipeline. Because of its possibility for "instruction rewiring" by run-time conditional compilation, I named it "Asmpure". It is targeted only at developers with a good knowledge of C++ and x86 assembly.
Example: CrossProduct
```
/*
void CrossProduct(float *V0, float *V1, float *V2)
{
V2[0] = V0[1] * V1[2] - V0[2] * V1[1];
V2[1] = V0[2] * V1[0] - V0[0] * V1[2];
V2[2] = V0[0] * V1[1] - V0[1] * V1[0];
}*/
const char *CrossPr