- 授权协议: GPLv3
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: https://github.com/nishiuramakoto/erasm-plusplus
软件介绍
Erasm++ 基于 C++ 的嵌入式运行时汇编器,是一个 C++ 的 Embedded Domain Specific Language (EDSL) 用于运行时生成代码。支持完整的编译时语法检查,其代码生成速度非常快,因为必须的数据已经做了静态计算,目前只支持 Intel 64 和 IA-32 体系架构。
示例代码:
#include <erasm/x64_addr64_data32.hpp>
#include <iostream>
typedef int (*pf_t) (int);
int main(int argc,char**argv)
{
using namespace std;
using namespace erasm::x64;
using namespace erasm::x64::addr64;
using namespace erasm::x64::addr64::data32;
byte_t buf[100];
byte_t *p = buf;
int32_t x = 2;
p += mov(p,rax,dword_ptr[rsp+8]);
p += add(p,rax,x);
p += ret(p);
pf_t f = (pf_t)buf;
int len = p - buf;
cout << "code length=" << len << endl
<< "result=" << f(argc) << endl;
return 0;
}
Spring 2企业应用开发
人民邮电出版社 / 2008-10 / 45.00元
《Spring 2企业应用开发》是一部权威的实战指南,由Spring开发团队撰写,全面讲述了Spring2企业应用开发。主要涵盖SpringFramework、核心容器、AOP(面向方面编程)、典型的SpringAOP框架等内容。通过阅读《Spring 2企业应用开发》,读者能够在实战中掌握Spring最佳实践,成为高效的Java开发人员。一起来看看 《Spring 2企业应用开发》 这本书的介绍吧!
