From f348dcbad43c0a1390729cfe144fef4c2b595c63 Mon Sep 17 00:00:00 2001 From: zhangxinyu <840317537@qq.com> Date: Wed, 17 May 2023 17:09:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=B0=E4=BB=B7=E7=94=A8=E6=88=B7=E5=BA=94?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ch2/user/src/bin/00hello_world.rs | 2 +- ch2/user/src/bin/01hello_world.rs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 ch2/user/src/bin/01hello_world.rs diff --git a/ch2/user/src/bin/00hello_world.rs b/ch2/user/src/bin/00hello_world.rs index 6995fb6..e1391d7 100644 --- a/ch2/user/src/bin/00hello_world.rs +++ b/ch2/user/src/bin/00hello_world.rs @@ -5,6 +5,6 @@ use user_lib::*; #[no_mangle] fn main() -> i32 { - println!("123"); + println!("hello 1"); 0 } \ No newline at end of file diff --git a/ch2/user/src/bin/01hello_world.rs b/ch2/user/src/bin/01hello_world.rs new file mode 100644 index 0000000..1e0f9bc --- /dev/null +++ b/ch2/user/src/bin/01hello_world.rs @@ -0,0 +1,10 @@ +#![no_std] +#![no_main] + +use user_lib::*; + +#[no_mangle] +fn main() -> i32 { + println!("hello 2"); + 0 +} \ No newline at end of file