(including drop flags and tail padding)
total padding (bytes) | number of structs |
---|---|
0 | 641 |
1 | 6 |
2 | 7 |
3 | 15 |
make CFG_HOST=x86_64-unknown-linux-gnu CFG_BUILD=x86_64-unknown-linux-gnu CFG_TARGET="x86_64-unknown-linux-gnu arm-linux-noeabi" rustc-stage1 | |
make -C "`pwd`/src/compiler-rt" ProjSrcRoot="`pwd`/src/compiler-rt" ProjObjRoot="`pwd`/arm-linux-noeabi/rt/compiler-rt" CC="arm-none-eabi-gcc" AR="arm-none-eabi-ar" RANLIB="arm-none-eabi-ar s" CFLAGS="-Wall -Werror -g -fPIC -D_YUGA_LITTLE_ENDIAN=1 -D_YUGA_BIG_ENDIAN=0 -march=armv6" TargetTriple="arm-linux-noeabi" triple-builtins | |
cp arm-linux-noeabi/rt/compiler-rt/triple/builtins/libcompiler_rt.a arm-linux-noeabi/rt/ | |
rustc-stage1 --target arm-linux-noeabi -O src/libcore/lib.rs | |
mkdir -p x86_64-unknown-linux-gnu/stage1/lib/rustlib/arm-linux-noeabi/lib/ | |
mv libcore-c5ed6fb4-0.11.0-pre.rlib x86_64-unknown-linux-gnu/stage1/lib/rustlib/arm-linux-noeabi/lib/libcore-c5ed6fb4-0.11.0-pre.rlib |
enum GPIO { | |
GPIO0, | |
GPIO1, | |
} | |
static GPIO0_ADDR: *mut Regs = 0xDEADBEEF as *mut Regs; | |
static GPIO1_ADDR: *mut Regs = 0xBEEFDEAD as *mut Regs; | |
impl GPIO { | |
fn get_addr(self) -> *mut Regs { |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# Marked 2 preprocessor | |
# Allows use of `*` link references where the next [*]: href defines the link | |
# Inspired by [tidbits][*] | |
# [*]: http://tidbits.com | |
if RUBY_VERSION.to_f > 1.8 | |
input = STDIN.read.force_encoding('UTF-8') | |
else | |
input = STDIN.read |