当前位置: 首页 > news >正文

浅谈旅游网站的规划与建设wordpress 单栏模板下载

浅谈旅游网站的规划与建设,wordpress 单栏模板下载,wordpress seo神器,硬之城电子元器件商城sudo usermod -a -G vboxsf nowind nowind是你的虚拟机登录的用户名解决virtualbox 虚拟机共享文件夹不能使用的问题 第一种#xff1a;源码内实现pass#xff1a; 实现EncodeFunctionName 的pass#xff0c;核心代码如下 相关文件的修改#xff1a; 因为后面同样用到…sudo usermod -a -G vboxsf nowind   nowind是你的虚拟机登录的用户名解决virtualbox 虚拟机共享文件夹不能使用的问题 第一种源码内实现pass 实现EncodeFunctionName 的pass核心代码如下 相关文件的修改 因为后面同样用到ollvm所以我已经放到一起了资源下载 https://download.csdn.net/download/ahjxly/88609122 因为全部都是修改llvm目录下的文件替换include和lib文件夹 替换完成后 cd cd llvm/llvm-project-9.0.1/llvm/cmake-build-debug/,执行ninja -j8,重新编译下。这次编译会快很多。 然后单独执行 ninja LLVMEncodeFunctionName,生成so文件进行使用。 使用方式和之前的文章一样执行 opt -load /home/nowind/llvm/llvm-project-9.0.1/llvm/cmake-build-release/lib/LLVMEncodeFunctionName.so -encode hello_clang.ll -o hello_clang_encode.bc clang hello_clang_encode.bc -o hello_clang_encode 第二种在源码外实现EncodeFunctionName2修改根目录下的CMakeList.txt set(LLVM_DIR /home/nowind/llvm/llvm-project-9.0.1/llvm/cmake-build-debug/lib/cmake/llvm/)这里为你自己的路径 执行结果如下 /home/nowind/llvm/CLion-2023.3/clion-2023.3/bin/cmake/linux/x64/bin/cmake -DCMAKE_BUILD_TYPEDebug -DCMAKE_MAKE_PROGRAM/usr/bin/ninja -G Ninja -S /home/nowind/llvm/pro/pro2/outPass -B /home/nowind/llvm/pro/pro2/outPass/cmake-build-debug -- Linker detection: GNU ld -- Configuring done (0.0s) -- Generating done (0.0s) -- Build files have been written to: /home/nowind/llvm/pro/pro2/outPass/cmake-build-debug[Finished] /home/nowind/llvm/CLion-2023.3/clion-2023.3/bin/cmake/linux/x64/bin/cmake --build /home/nowind/llvm/pro/pro2/outPass/cmake-build-debug --target all -j 6 [2/2] Linking CXX shared module EncodeFunctionName2/LLVMEncodeFunctionName2.soBuild finished 生成的文件在 /home/nowind/llvm/pro/pro2/outPass/cmake-build-debug/EncodeFunctionName2/LLVMEncodeFunctionName2.so 使用opt 命令 opt -load /home/nowind/llvm/pro/pro2/outPass/cmake-build-debug/EncodeFunctionName2/LLVMEncodeFunctionName2.so -encode2 hello_clang.ll WARNING: Youre attempting to print out a bitcode file. This is inadvisable as it may cause display problems. If you REALLY want to taste LLVM bitcode first-hand, you can force output with the -f option.EncodeFunctionName22: test_hello1 - 9c119247aefaa12cdd417eb3d57d5b2a EncodeFunctionName22: main - main EncodeFunctionName22: test_hello2 - af0aaac8b98b759ace7b9eacbd2238a6得到同样的结果。 clang使用自定义的pass生成可执行文件 clang -Xclang -load -Xclang /home/nowind/llvm/pro/pro2/outPass/cmake-build-release/EncodeFunctionName2/LLVMEncodeFunctionName2.so -encode2 hello_clang.ll -o hello_clang_encode3 -Wno-unused-command-line-argument第三种EncodeFunctionName注册到clang中 /home/nowind/llvm/llvm-project-9.0.1/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp populateModulePassManager方法中增加 MPM.add(createEncodeFunctionName()); 重新编译clang: 这里用的release因此PATH要改 ninja clang export PATH/home/nowind/llvm/llvm-project-9.0.1/llvm/cmake-build-release/bin:$PATH clang -mllvm -encode_function_name hello_clang.bc 切换到debug 修改EncodeFunction中CMakeLists.txt set(LLVM_DIR /home/nowind/llvm/llvm-project-9.0.1/llvm/cmake-build-debug/lib/cmake/llvm/) cd cmake-build-debug ninja opt 重新编译opt opt -load /home/nowind/llvm/pro/pro2/outPass/cmake-build-debug/EncodeFunctionName2/LLVMEncodeFunctionName2.so -encode2 hello_clang.ll -o hello_clang_encode.bc 注意pass不能重名 opt 断点 OutPass中配置EncodeFunctionName2的opt为 /home/nowind/llvm/llvm-project-9.0.1/llvm/cmake-build-debug/bin/opt 参数配置为 -load /home/nowind/llvm/pro/pro2/outPass/cmake-build-debug/EncodeFunctionName2/LLVMEncodeFunctionName2.so -encode2 /home/nowind/llvm/pro/pro2/hello_clang.ll -o /home/nowind/llvm/pro/pro2/hello_clang_encode.bc 但这样配置完毕后发现一个问题就是日志在clion控制台中看不到只有换行勾选了 Emulate terminal in the output console才能看到奇怪的很但也不影响什么
http://www.w-s-a.com/news/882194/

相关文章:

  • 免费推广网站推荐外贸推广平台哪个好
  • 腾宁科技做网站399元全包企业校园网站建设
  • 海外医疗兼职网站建设公司取名字大全免费
  • 龙口市规划建设局网站vi设计和品牌设计的区别
  • 企业网站的总体设计网站建设评审验收会议主持词
  • 网站建设完成推广响应式网站设计开发
  • 电商网站用php做的吗网站开发流程可规划为那三个阶段
  • flash网站怎么做音乐停止深圳网站建设金瓷网络
  • 哪个网站可以做房产信息群发怎么做国内网站吗
  • 微商城网站建设公司的价格卖磁铁的网站怎么做的
  • 免费做做网站手机平台软件开发
  • 网站单页做301徐州百度网站快速优化
  • 织梦怎么制作手机网站漳州专业网站建设公司
  • 邓州做网站网络优化概念
  • 查看网站开发phonegap wordpress
  • 网站建设和维护待遇怎样c 做的网站又哪些
  • 淮南网站推广网站开发行业前景
  • 丽水市龙泉市网站建设公司江门手机模板建站
  • 做化妆品注册和注册的网站有哪些wordpress加关键字
  • 四川新站优化php笑话网站源码
  • 外贸类网站酷玛网站建设
  • 合肥网站设计建设南宁网站seo推广优化公司
  • 临沂百度网站7x7x7x7x8黄全场免费
  • 海洋牧场网站建设大良网站设计价格
  • 手机端网站关键字排名北京seo公司哪家好
  • 福建建设培训中心网站网站建站服务公司地址
  • 青岛网站优化快速排名企业网址怎么整
  • 做公司网站用什么系统seo搜索排名优化方法
  • dw怎么做网站标题图标做网站重庆
  • 机场建设相关网站公司官网设计制作