pub extern "C" fn _start() -> ! {
    // this function is the entry point, since the linker looks for a function
    // named `_start` by default

    let vga_buffer = 0xb8000 as *mut u8;
    
    // print `HELLO` to the screen (see
    // https://os.phil-opp.com/minimal-rust-kernel/#printing-to-screen)
    for (i, &byte) in HELLO.iter().enumerate() {
        unsafe {
            *vga_buffer.offset(i as isize * 2) = byte;
            *vga_buffer.offset(i as isize * 2 + 1) = 0xb;
        }
    }

    loop {}
}
// don't mangle the name of this function
don't mangle the name of this function
don ' t mangle the name of this function
pub extern "C" fn _start() -> ! {
    // this function is the entry point, since the linker looks for a function
    // named `_start` by default
    let vga_buffer = 0xb8000 as *mut u8;
    // print `HELLO` to the screen (see
    // https://os.phil-opp.com/minimal-rust-kernel/#printing-to-screen)
    for (i, &byte) in HELLO.iter().enumerate() {
        unsafe {
            *vga_buffer.offset(i as isize * 2) = byte;
            *vga_buffer.offset(i as isize * 2 + 1) = 0xb;
        }
    }
    loop {}
}
pub extern " " fn _start ( ) -> ! { // this function is the entry point, since the linker looks for a function // named `_start` by default let vga_buffer = 0xb8000 as * mut u8 ; // print `HELLO` to the screen (see // https://os.phil-opp.com/minimal-rust-kernel/#printing-to-screen) for ( i , & byte ) in HELLO . iter ( ) . enumerate ( ) { unsafe { * vga_buffer . offset ( i as isize * 2 ) = byte ; * vga_buffer . offset ( i as isize * 2 + 1 ) = 0xb ; } } loop { } }
don't mangle the name of this function
don ' t mangle the name of this function