프로젝트
GitHub에서 보기

aftermathlabs/llvm-msvc
소개
LLVM fork with explicit compatibility with MSVC 2022 features.
프로그래밍 언어 및 런타임What you can do
- Compatible with MSVC syntax as much as possible.
- Almost fully compatible with SEH.
- Added some special Intrinsic functions(__vmx_vmread/__vmx_write).
- Supports x64/ARM64 windows drivers.
측정된 스타 증가
- in 24h
- +2
- in 7 days
- +3
- in 15 days
- +3
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalllvm-msvc
llvm-msvc is a compiler based on LLVM that isn't limited by MSVC. The aim is to provide the same experience as MSVC on Windows. You can use naked functions anywhere and also add custom support like obfuscation.
Features:
- Compatible with
MSVCsyntax as much as possible. - Almost fully compatible with
SEH. - Added some special Intrinsic functions(
__vmx_vmread/__vmx_write). - Supports
x64/ARM64windows drivers. - Supports
AArch64android GKI drivers. - Allows naked
X64inline asm. - Enables multiple cores compilation.
- Supports
/MPwhen precompiled headers are present. - Supports
/GL(LTO optimization).
FAQ
Why do we make this project?
Clangfollows theGCCstandard, whileMSVChas its own unique syntax.- Some of the code is pretty hacky. Can't submit it officially.
- Waiting for the official fix takes too long.
How to use llvm-msvc?
- Install Visual Studio 2015-2022 (I recommend using 2022) along with WDK11.
- Download and install llvm-msvc from the following repository llvm-msvc_X86_64_installer-PDB.exe.
- Create your Windows driver project and choose "LLVM-MSVC_v143_KernelMode" as your platform toolset.
- Compile your project.
How to compile?
X86+ARM64:clang+lld+lldb+debug
cmake -Bbuild -A X64 -DLLDB_ENABLE_PYTHON=OFF -DLLVM_ENABLE_PROJECTS="clang;lld;lldb" -DCMAKE_INSTALL_PREFIX=E:\llvm\install-debug-64 -DLLVM_TARGETS_TO_BUILD="X86;AArch64" -DCMAKE_BUILD_TYPE=Debug llvm
msbuild /m -p:Configuration=Debug INSTALL.vcxproj
--------------------------------------------------
X86+ARM64:clang+lld+lldb+RelWithDebInfo
mkdir build2
pushd build2
cmake .. -G "Visual Studio 17 2022" -A X64 -DLLVM_ENABLE_MIMALLOC=ON -DCMAKE_CXX_FLAGS="/utf-8" -DCMAKE_C_FLAGS="/utf-8" -DLLVM_ENABLE_PACK_PDB=ON -DLLDB_ENABLE_PYTHON=OFF -DLLVM_ENABLE_PROJECTS="clang;lld;lldb" -DCMAKE_INSTALL_PREFIX=E:\llvm\install-RelWithDebInfo-64 -DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_ZLIB=OFF -DLLVM_TARGETS_TO_BUILD="X86;AArch64" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_USE_CRT_RELEASE=MT ../llvm
msbuild /m -p:Configuration=RelWithDebInfo INSTALL.vcxproj
--------------------------------------------------
X86+ARM64:clang+lld+lldb+release
mkdir build3
pushd build3
cmake .. -G "Visual Studio 17 2022" -A X64 -DLLVM_ENABLE_MIMALLOC=ON -DCMAKE_CXX_FLAGS="/utf-8" -DCMAKE_C_FLAGS="/utf-8" -DLLDB_ENABLE_PYTHON=OFF -DLLVM_ENABLE_PROJECTS="clang;lld;lldb" -DCMAKE_INSTALL_PREFIX=E:\llvm\install-release-64 -DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_ZLIB=OFF -DLLVM_TARGETS_TO_BUILD="X86;AArch64" -DCMAKE_BUILD_TYPE=release -DLLVM_USE_CRT_RELEASE=MT ../llvm
msbuild /m -p:Configuration=release INSTALL.vcxproj
How to contribute?
- https://github.com/HyunCafe/contribute-practice
- https://docs.github.com/en/get-started/quickstart/contributing-to-projects
How can I learn LLVM?
If you don't know how to learn LLVM, you can check out this repository of mine.
Can it run on linux?
Yes.
Can it run on macos?
Yes.
Credits
LLVMmold- Some anonymous people
관련 프로젝트 살펴보기
불러오는 중…