-
Notifications
You must be signed in to change notification settings - Fork 0
Heterogeneous Cross Compilation
MicBur edited this page Jul 26, 2026
·
1 revision
SUCO Grid allows Windows developers to offload C/C++ compilation directly to Linux server nodes without configuring complex cross-chroots manually.
-
Client Request: On Windows, the client runs
suco-cl++.exe(or MSVC wrappersuco-cl.exe). -
Preprocessing: The client preprocesses the source file locally using
g++ -Eorcl.exe /Pand generates a SHA-256 content hash. -
Target Matching: The coordinator inspects the job's requested toolchain (
x86_64-w64-mingw32-g++). - Direct Dispatch: The Windows client connects directly to the assigned Linux worker over TCP.
-
Cross-Compilation: The Linux worker executes its MinGW cross-compiler (
x86_64-w64-mingw32-g++ -c -o). -
Binary Object Return: A native Windows
PE-x86-64binary object file (.o/.obj) is returned directly to the Windows client.
To enable cross-compilation on a Linux worker, install the MinGW cross-compiler packages:
sudo apt update && sudo apt install -y g++-mingw-w64-x86-64When suco-worker starts, it automatically detects x86_64-w64-mingw32-g++ and advertises it to the coordinator.
-
SUCO_COORDINATOR_HOST: Set the IP of the Linux Coordinator (e.g.192.168.0.200). -
SUCO_LOCAL_SLOTS: Set to0to force 100% of jobs to be sent to the remote Linux grid. -
SUCO_IGNORE_VERSION: Set to1to allow cross-matching across minor GCC/MinGW patch versions.