Skip to content

Instantly share code, notes, and snippets.

View JShorthouse's full-sized avatar

James Shorthouse JShorthouse

View GitHub Profile
@JShorthouse
JShorthouse / Cargo.toml
Last active November 22, 2023 09:33
rust - macos CPU usage per core
[package]
name = "cpu_usage"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
libc = "0.2.125"
@JShorthouse
JShorthouse / ht.pl
Created December 19, 2021 22:17
Rehost of perl script for fixing GBA rom headers, originally found at: http://www.gbanow.net/gba_rom_tools.htm
#!/usr/bin/perl
use Getopt::Std;
# Header tool v0.01
# (c) 02 buZz
# This tool is ment for the reading , display and possible alteration of
# the header located in all GBA roms.
@JShorthouse
JShorthouse / gba-gcc-compiling-linux.md
Last active February 25, 2024 01:44
Compiling GBA programs on Linux with GCC

Compiling GBA programs on Linux with GCC

There is a strange lack of guides and tools online for compiling Gameboy Advance homebrew programs on Linux. I didn't want to use devkitpro - their installation method of requiring you to use a forked version of pacman is extemely strange and I didn't want to install all of that on my system just to complile some programs.

The only other guides I found for Linux were this one and this one which both involve compiling custom versions of GCC and assosicated libraries. This lead me down a road of pain, after spending multiple hours fixing compiler errors only to create new errors I gave up. I thought that their had to be a simpler way, and there is!

The solution

Debian already has a version of GCC that can compile ARM programs in the repos, no manual compiling necessary! The package is called arm-none-eabi-gcc.