valord577

valord577

V2EX member #342075, joined on 2018-08-17 13:27:14 +08:00
Today's activity rank 12637
Per valord577's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
valord577's recent replies
4 days ago
Replied to a topic by AsianChampion › 程序员 › Mac 怎么打 Windows 的包

#14 示例如下 debian 默认的 clang-19

┌─[root@host] [x86_64] [2026-11-26 11:21:02 +0800] [Bash v5.2.15] [~/code]
└─% clang --driver-mode=cl /nologo /TC /E /clang:-dM /clang:-v --target=aarch64-pc-windows-msvc -fms-compatibility-version=19.00 /dev/null 
Debian clang version 19.1.7 (3~deb12u1)
Target: aarch64-pc-windows-msvc
Thread model: posix
InstalledDir: /usr/lib/llvm-19/bin
 (in-process)
 "/usr/lib/llvm-19/bin/clang" -cc1 -triple aarch64-pc-windows-msvc19.0.0 -E -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name null -mrelocation-model pic -pic-level 2 -mframe-pointer=none -relaxed-aliasing -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu generic -target-feature +v8a -target-feature +fp-armv8 -target-feature +neon -target-abi aapcs -D_MT -flto-visibility-public-std --dependent-lib=libcmt --dependent-lib=oldnames -stack-protector 2 -fdiagnostics-format msvc -fdebug-compilation-dir=/root/code/libhwcae_mr_39 -v -fcoverage-compilation-dir=/root/code/libhwcae_mr_39 -resource-dir /usr/lib/llvm-19/lib/clang/19 -internal-isystem /usr/lib/llvm-19/lib/clang/19/include -ferror-limit 19 -fno-use-cxa-atexit -fms-extensions -fms-compatibility -fms-compatibility-version=19.0 -fskip-odr-check-in-gmf -fdelayed-template-parsing -fcolor-diagnostics -dM -target-feature -fmv -faddrsig -o - -x c /dev/null
clang -cc1 version 19.1.7 based upon LLVM 19.1.7 default target x86_64-pc-linux-gnu
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/llvm-19/lib/clang/19/include
End of search list.
#define _INTEGRAL_MAX_BITS 64
#define _ISO_VOLATILE 1
#define _MSC_BUILD 1
#define _MSC_EXTENSIONS 1
#define _MSC_FULL_VER 190000000
#define _MSC_VER 1900
#define _MSVC_EXECUTION_CHARACTER_SET 65001
#define _MT 1
#define _M_ARM64 1
#define _M_FP_CONTRACT 1
#define _M_FP_PRECISE 1
#define _WIN32 1
#define _WIN64 1
#define __AARCH64EL__ 1
#define __AARCH64_CMODEL_SMALL__ 1
#define __ARM_64BIT_STATE 1
#define __ARM_ACLE 200
#define __ARM_ALIGN_MAX_STACK_PWR 4
#define __ARM_ARCH 8

... (这里都是编译器内置宏) ...
4 days ago
Replied to a topic by AsianChampion › 程序员 › Mac 怎么打 Windows 的包
  1. 下载windows msvc sdk 用 xwin 工具下载 也有使用说明
  2. apple 自带 clang 可以使用clang --driver-mode=cl模拟 msvc 的 cl.exe 的产出
    • 查看 clang-cl 的 help: clang --driver-mode=cl /clang:--help-hidden

剩下的可以问 AI 上面就是交叉编译的思路 甚至 linux 也可以编译产出 msvc 的 exe

试试上古快捷键: ctrl+insert / shift+insert
@jamfer #16 流畅的 不卡顿 就是 GPU 占用乍一眼看着有点高
#14 typo: 静止不动
海港那个图禁止不动时候的占用: Apple M4 三个 GPU 核心 每个核心 70%+
站在用户角度来看: 为什么不考虑精简代码和第三方依赖库呢 把 apk 整包的 size 减小了 编译也会快呀

站在技术角度来看: 非常棒的思路和实现
如果部署流程健壮的话 能"新机器替换现有的"吗?直接用新机器部署一遍 旧机器刷机掉 等待下一次操作
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4733 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 03:36 · PVG 11:36 · LAX 19:36 · JFK 22:36
♥ Do have faith in what you're doing.