LOGI

Results 24 comments of LOGI

> I mean you could try to put the cmdlet in a pipeline like `1 | Get-WebRequest`. not working still

> 同问:测试用例里写的栈大小为一个页,但是batch.rs里写的为两个页。 在第二章的测试中,我们对于内核有如下仅仅为了测试方便的要求,请调整你的内核代码来符合这些要求。 用户栈大小必须为 4096,且按照 4096 字节对齐。这一规定可以在实验4开始删除,仅仅为通过 lab2/3 测例设置。

> > 可变借用和不可变借用不能共存 > > 不能同时共存 共就是同时的意思啊。它们可以存在于同一函数中,但生命周期不重叠 ```rust // https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html let mut s = String::from("hello"); let r1 = &s; // no problem let r2 = &s; // no problem println!("{}...

文档似乎没有更新,我也贴一下能运行的代码,如果你阅读教程的日期和这条评论相差不远可以参考: ```bash $ rustc --version rustc 1.56.0-nightly (3d0774d0d 2021-08-18) ``` 展开查看 ```rust // src/main.rs #![no_std] #![no_main] #![feature(asm)] use core::fmt::{self, Write}; mod lang_items; const SYSCALL_EXIT: usize = 93; const SYSCALL_WRITE: usize...

> “编译器 (Compiler) 将每个源文件从某门高级编程语言转化为汇编语言,注意此时源文件仍然是一个 ASCII 或其他编码的文本文件;“ 这里,“注意此时源文件”中的“源文件”应该是指编译后的目标文件吧? 是的,但相对于后面的汇编器来说,它是源文件,并且是文本文件,不是二进制文件 > 汇编器 (Assembler) 将上一步的每个源文件中的文本格式的指令转化为机器码,得到一个二进制的 目标文件 (Object File); 这里的“源文件”含义有点模糊,应该是指编译结果。 上一步产生的是汇编代码,对于汇编器来说,它是源文件

> 想问下,__alltraps为什么要对齐量是4呢 > 第 7 行我们使用 .align 将 __alltraps 的地址 4 字节对齐,这是 RISC-V 特权级规范的要求;

Yes, the author could have done the wrong thing. The precedence order is not consistent with [this doc](https://en.cppreference.com/w/c/language/operator_precedence) which is even mentioned by the author in Readme. In this chapter,...

客户端: [v2rayNG 1.8.19](https://github.com/2dust/v2rayNG/releases/tag/1.8.19) 服务端:[Xray-core v1.8.10](https://github.com/XTLS/Xray-core/releases/tag/v1.8.10) 裸 Vless + httpUpgrade,没有 tls,没有套 Web Server 和 CDN 服务端配置: ```json { "inbounds": [ { "port": 10007, "protocol": "vless", "settings": { "decryption": "none", "clients": [...

> > 客户端: [v2rayNG 1.8.19](https://github.com/2dust/v2rayNG/releases/tag/1.8.19) > > 服务端:[Xray-core v1.8.10](https://github.com/XTLS/Xray-core/releases/tag/v1.8.10) > > 裸 Vless + httpUpgrade,没有 tls,没有套 Web Server 和 CDN > > 服务端配置: > > ```json > > { >...