mirror of
https://github.com/ElliotKillick/windows-vs-linux-loader-architecture
synced 2026-06-08 10:57:32 +00:00
Code Samples
Compiling & Running
These instructions are for building and running the code samples in this repo:
- Compile
- Unix: Run
makewhere there is aMakefile - Windows: Run
build.batwhere this script exists - For cross-platform Rust:
cargo build
- Unix: Run
- Pre-execution
- Unix: Run
export LD_LIBRARY_PATH="$PWD"(set this varible to where the libraries are) so an application can its find libraries - Windows: This system searches the program folder and current working directory by default (copy or move files if necessary, e.g. with the
copy /ycommand) - For cross-platform Rust: Not necessary when using
cargohelpers
- Unix: Run
- Run
- Unix: Run
./<PROGRAM>orgdb ./<PROGRAM>to debug - Windows: Run
<PROGRAM_NAME>.exeor pop it into WinDbg to debug - For cross-platform Rust:
cargo run
- Unix: Run
The steps are intentionally designed to be as simple and easy as possible to remove friction from experimentation, even on Windows, thanks to the succinct build.bat helper files I made to achieve parity with Unix systems.