- do not set optimzation level to more than 0. my guess is that optimization are meant for bins
- compability with other libc is not a goal
- when using build.sh/run.sh (i fucking suck at bash) make sure u r on the project root
- sometime the type may be different (returning bool as i32) and treating it as such (the difference is usually inconseqeuntial) (correct me if im wrong)
- if you are interested in reading the source code. check out
src/ctypes.rs:toascii - never use llvm assembly. trust me
- rust_eh_personality fix in top answer's replies from Miaao
- if you have any idea how to switch to a linux target without a libc. tell me
- miaao i fucking thank you
- stuff are not working (atoi) (and it is likely arcane magic causing it)
- rust_eh_personality (causes the fucking C test part to not compile)
- exported lib symbols are null (fuck if i know)
- rust_eh_personality (yeah i know your personality sucks stfu)
- dogshit llvm assembly syntax
- rust fucking hates
.btw. - any optimization turns the whole thing into shit
- had no fucking idea alignment matters because cpus can only read their size
[profile.dev]
codegen-units = 1
// handler
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
// fuck you
loop {}
}
// dummy symbol
#[lang = "eh_personality"]
fn wawa(){
loop {}
}
- minimal dependency on C libraries
- impl more
- wawa
- av
- try not to use mod.rs
- sysv abi
- registers
- one byte mov
- reg == 0
- how many times can you xor?
testis preferable overcmp- ffff
- what the fuck is a vdso
- default int size is isize