pKiller->m_Stats.m_GrabsFalse
to pKiller->m_Stats.m_GrabsWrong
? learath2@l2gentoo ~/test $ cat test.c
#include <stdio.h>
int main(int argc, char **argv) {
puts("Hello, World!");
}
learath2@l2gentoo ~/test $ cat test.rs
fn main() {
println!("Hello, World!");
}
learath2@l2gentoo ~/test $ wc -c c_* rs_*
15408 c_flto
15464 c_gccdefault
15464 c_o3
15464 c_os
3700312 rs_0dbg_3opt
3700312 rs_2opt
3700776 rs_rustcdefault
Here is the same test repeated with giving both languages the same amount of care and messing about with flags a littlelearath2@l2gentoo ~/test $ rustc -C debuginfo=0 -C opt-level=3 -C lto=true test.rs
learath2@l2gentoo ~/test $ wc -c test
1755128 test
Here is rust with lto just to give it the same chance, I hadn't found the flag. So I guess rust benefits from lto much more since the std is massivelearath2@l2gentoo ~/test $ rustc -C debuginfo=0 -C opt-level=3 -C lto=true test.rs
learath2@l2gentoo ~/test $ wc -c test
1755128 test
Here is rust with lto just to give it the same chance, I hadn't found the flag. So I guess rust benefits from lto much more since the std is massive $ RUSTFLAGS="-Zlocation-detail=none -Zfmt-debug=none" cargo +nightly build \
-Z build-std=std,panic_abort \
-Z build-std-features="optimize_for_size" \
--target x86_64-apple-darwin --release
-fuse-ld=lld
gets me to 5888 bytes#![no_std]
#![no_main]
extern crate libc;
#[no_mangle]
pub extern "C" fn main(_argc: isize, _argv: *const *const u8) -> isize {
// Since we are passing a C string the final null character is mandatory.
const HELLO: &'static str = "Hello, world!\n\0";
unsafe {
libc::printf(HELLO.as_ptr() as *const _);
}
0
}
#[panic_handler]
fn my_panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
}
learath2@l2gentoo ~/test $ cat test.c
#include <stdio.h>
int main(int argc, char **argv) {
puts("Hello, World!");
}
learath2@l2gentoo ~/test $ cat test.rs
fn main() {
println!("Hello, World!");
}
learath2@l2gentoo ~/test $ wc -c c_* rs_*
15408 c_flto
15464 c_gccdefault
15464 c_o3
15464 c_os
3700312 rs_0dbg_3opt
3700312 rs_2opt
3700776 rs_rustcdefault
Here is the same test repeated with giving both languages the same amount of care and messing about with flags a little mod foo {
struct Foo {
_: Foo,
}
#[intrinsic = "sizeof"]
fn sizeof<T>() -> u64;
pub fn main() -> i32 {
sizeof::<Foo>();
return 0;
}
}
-rwxr-xr-x 1 learath2 learath2 688952 Mar 14 17:07 a.out
gcc -static test.c
mod foo {
struct Foo {
_: Foo,
}
#[intrinsic = "sizeof"]
fn sizeof<T>() -> u64;
pub fn main() -> i32 {
sizeof::<Foo>();
return 0;
}
}
fn main() { println!("Hello World!"); }
mod foo {
const foo: i32 = 10;
fn main() -> i32 {
let a: &i32 = &foo;
}
}
(edited)Unknown
bam
and it has same interface as bam but uses cmake internallycrackman install bam4
https://cdn.discordapp.com/emojis/1322627615906992149.webp
[[ "foo'" =~ foo"'" ]] && echo match1
prints match1[[ "foo'" =~ foo"'?" ]] && echo match2
does not print anything?[[ fooy =~ foox? ]] && echo fox
i mean this prints fox ...[[ "foo'" =~ foo"'"? ]] && echo match3