プロジェクト
GitHubで見る

aftermathlabs/llvm-msvc
概要
LLVM fork with explicit compatibility with MSVC 2022 features.
言語・ランタイムできること
- 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.
計測したスター増加
- 24時間
- +2
- 7日間
- +3
- 15日間
- +3
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルllvm-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
関連プロジェクトを探す
読み込み中…