GithubHelp home page GithubHelp logo

clhhz / blackmoonkernelstaticlib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhongjianhua163/blackmoonkernelstaticlib

0.0 0.0 0.0 675 KB

黑月编译器插件的核心静态库部分的源码

License: BSD 3-Clause "New" or "Revised" License

C++ 71.64% C 10.73% Makefile 17.63%

blackmoonkernelstaticlib's Introduction

========================================================================
       黑月编译器插件的核心静态库开源相关事项
========================================================================

原作者:云外归鸟
后续升级:泪闯天涯(邓学彬)
后续优化:被封七号

一、编译与安装
  1.使用VC6.0打开工程文件: kernel.dsw。
  2.编译后,将release目录下的kernel.lib替换到易语言安装目录\BlackMoon\lib\
  kernel.lib中即可。
  3.如果你的VC6.0版本无法正常打开工程文件,
    亦或者你想用其他IDE来编辑、编译此工程,则按以下步骤操作:
    1)新建一个空的静态LIB工程(Win32 Static Library)
    2)将所有文件复制到新的工程目录下(.dsw和.dsp文件无需复制)
    3)将所有文件导入到新的工程中,但不要导入以下文件:
      EyInit.obj
      EyComInit.obj
      BlackMoonDll.obj
      BlackMoonDll2.obj
      BlackMoonExe.cpp
    4)修改工程配置:
      不使用MFC(Not Using MFC)
      使用自定义预编译头文件(Through header: stdafx.h)
      输出文件名: .\Release\krnln.lib
      多线程模式:Multithread(/MT)

二、源码使用事项
  原则上,只要不是商业用途及非法用途,源码可以任意使用及传播,
  编译后的静态库文件kernel.lib可以用于编译链接到商业作品中。
  在复制与传播时,必须注明开源地址:
  https://github.com/zhongjianhua163/BlackMoonKernelStaticLib
  https://gitee.com/zhongjianhua163/BlackMoonKernelStaticLib
  
三、代码编写规范
  如果你想参与更新、优化或修复BUG,请仔细阅读以下事项:
  1.变量、常量、函数等命名时尽量能准确表达其属性及用途。
  2.少用或尽量不要用内联汇编。
  3.如果必须要用到内联汇编,则尽量不要使用新的指令集,如SSE\AVX等。
  4.如果必须要用到新的指令集,请务必做好自适配代码,确保老的CPU及远古级别的
    32位CPU能正常运行,并实现指定效果。(常规做法是编写两份代码,一份使用新
    的指令集,另一份使用常规指令集,并根据用户的CPU所支持的指令集来进行调用)
  5.确保代码的简洁美观、高效、稳定及安全性。
  6.确保函数的参数、返回值及运行效果与易语言原生核心库保持一致。
  7.编辑的源代码文件的时候,请使用ANSI和GB2312编码,切勿使用UTF8或其他编码。
  8.使用git来push前,请将自动替换换行符功能: autoCRLF 设置为 false。

四、如何参与到项目开发中来?
  1.可以加入此开源项目的管理团队
  2.可以在github或gitee中通过Issues页面提交错误和改进建议
  3.可以在github或gitee中 fork, 修改后通过 pull request 合并代码

  
/////////////////////////////////////////////////////////////////////////////

blackmoonkernelstaticlib's People

Contributors

clhhz avatar qihaooooooo avatar zhongjianhua163 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.