mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-10-27 11:10:41 +01:00
hihihi
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -2,8 +2,8 @@
|
|||||||
.obsidian
|
.obsidian
|
||||||
.trash
|
.trash
|
||||||
.idea
|
.idea
|
||||||
*.out
|
**.out
|
||||||
*/out
|
**/out
|
||||||
.Rhistory
|
**/.Rhistory
|
||||||
main
|
|
||||||
.Rproj.user
|
.Rproj.user
|
||||||
|
**/target
|
||||||
|
|||||||
17
uczelnia/3_semestr/komputery/Wprowadzenie do asm.md
Normal file
17
uczelnia/3_semestr/komputery/Wprowadzenie do asm.md
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
Spóźniłem się 15 min. a on gada coś i nic nie rozumiem, bo tak cicho jest.
|
||||||
|
|
||||||
|
Coś o matmie gada, obliczenia wykonuje jakieś teoretyczne.
|
||||||
|
|
||||||
|
Pan wykładowca trzyma mikrofon, ale do niego nie mówi.
|
||||||
|
|
||||||
|
Na dany cykl robi coś tylko raz.
|
||||||
|
|
||||||
|
ALU – układ wykonawczy. Składa się z 2 wejść na dane, wejścia na kod operacji, wyjścia na wynik i wyjścia na flagi.
|
||||||
|
|
||||||
|
2 testy obowiązkowe, projekt nieobowiązkowy.
|
||||||
|
|
||||||
|
Potencjalnie możliwy egzamin ustny dla osób, chcących wyższą ocenę.
|
||||||
|
|
||||||
|
„Jakbym umiał zrobić urządzenie do teleportacji, ale nie wiedział jak ono działa, to i tak ludzie by to kupowali.” ~~ Piękne słowa Pana Wykładowcy
|
||||||
|
|
||||||
|
Z punktu widzenia procesora ram to rom.
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
Zaliczenie: 20 pytań wielokrotnego wyboru
|
|
||||||
|
|
||||||
Treści wykładów [na stronie](https://detox.wi.zut.edu.pl/pb/)
|
|
||||||
26
uczelnia/3_semestr/rust/Wykład.md
Normal file
26
uczelnia/3_semestr/rust/Wykład.md
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Ogólnie
|
||||||
|
Zaliczenie: 20 pytań wielokrotnego wyboru
|
||||||
|
|
||||||
|
Treści wykładów [na stronie](https://detox.wi.zut.edu.pl/pb/)
|
||||||
|
|
||||||
|
W skrócie: RUST JEST SUPER!!!!!!
|
||||||
|
|
||||||
|
Pan prowadzący do kolejny hejter w\*ndowsa, BRAWO
|
||||||
|
|
||||||
|
# Deklaracje funkcji:
|
||||||
|
```rust
|
||||||
|
fn is_young_woman_better(age: i32, owner_name: &str) -> bool {
|
||||||
|
age < 16 && owner_name == "Polski Pingwin"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
# Moduły
|
||||||
|
Moduły są super.
|
||||||
|
```rust
|
||||||
|
// też prawdopodobnie jakiś moduł
|
||||||
|
|
||||||
|
mod modul {
|
||||||
|
// moduł
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
@@ -11,7 +11,10 @@
|
|||||||
env.GREET = "devenv";
|
env.GREET = "devenv";
|
||||||
|
|
||||||
# https://devenv.sh/packages/
|
# https://devenv.sh/packages/
|
||||||
packages = [ pkgs.git ];
|
packages = [
|
||||||
|
pkgs.git
|
||||||
|
pkgs.rustup
|
||||||
|
];
|
||||||
|
|
||||||
# https://devenv.sh/languages/
|
# https://devenv.sh/languages/
|
||||||
languages.rust.enable = true;
|
languages.rust.enable = true;
|
||||||
|
|||||||
202
uczelnia/3_semestr/rust/laby/lab1/Cargo.lock
generated
Normal file
202
uczelnia/3_semestr/rust/laby/lab1/Cargo.lock
generated
Normal file
@@ -0,0 +1,202 @@
|
|||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
|
version = 4
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "base64"
|
||||||
|
version = "0.23.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "bumpalo"
|
||||||
|
version = "3.20.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "cfg-if"
|
||||||
|
version = "1.0.5"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "futures-core"
|
||||||
|
version = "0.3.34"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "futures-task"
|
||||||
|
version = "0.3.34"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "futures-util"
|
||||||
|
version = "0.3.34"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
|
||||||
|
dependencies = [
|
||||||
|
"futures-core",
|
||||||
|
"futures-task",
|
||||||
|
"pin-project-lite",
|
||||||
|
"slab",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "getrandom"
|
||||||
|
version = "0.4.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
|
||||||
|
dependencies = [
|
||||||
|
"cfg-if",
|
||||||
|
"libc",
|
||||||
|
"r-efi",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "js-sys"
|
||||||
|
version = "0.3.106"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "7883d941dae510fb2d978fc3fe018c71c9e2892fd38854de3e8b92c2e5ad9cc5"
|
||||||
|
dependencies = [
|
||||||
|
"cfg-if",
|
||||||
|
"futures-util",
|
||||||
|
"wasm-bindgen",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "lab1"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"base64",
|
||||||
|
"uuid",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "libc"
|
||||||
|
version = "0.2.190"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "once_cell"
|
||||||
|
version = "1.21.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "pin-project-lite"
|
||||||
|
version = "0.2.17"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "proc-macro2"
|
||||||
|
version = "1.0.107"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
||||||
|
dependencies = [
|
||||||
|
"unicode-ident",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "quote"
|
||||||
|
version = "1.0.47"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "r-efi"
|
||||||
|
version = "6.0.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "rustversion"
|
||||||
|
version = "1.0.23"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "slab"
|
||||||
|
version = "0.4.12"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "syn"
|
||||||
|
version = "3.0.6"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"unicode-ident",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "unicode-ident"
|
||||||
|
version = "1.0.26"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "uuid"
|
||||||
|
version = "1.27.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "97277d36b9c3ace13e58fa6e753f8b0bbbf302a18dd193240d70f9e29681059a"
|
||||||
|
dependencies = [
|
||||||
|
"getrandom",
|
||||||
|
"js-sys",
|
||||||
|
"wasm-bindgen",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "wasm-bindgen"
|
||||||
|
version = "0.2.129"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409"
|
||||||
|
dependencies = [
|
||||||
|
"cfg-if",
|
||||||
|
"once_cell",
|
||||||
|
"rustversion",
|
||||||
|
"wasm-bindgen-macro",
|
||||||
|
"wasm-bindgen-shared",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "wasm-bindgen-macro"
|
||||||
|
version = "0.2.129"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535"
|
||||||
|
dependencies = [
|
||||||
|
"quote",
|
||||||
|
"wasm-bindgen-macro-support",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "wasm-bindgen-macro-support"
|
||||||
|
version = "0.2.129"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7"
|
||||||
|
dependencies = [
|
||||||
|
"bumpalo",
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn",
|
||||||
|
"wasm-bindgen-shared",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "wasm-bindgen-shared"
|
||||||
|
version = "0.2.129"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6"
|
||||||
|
dependencies = [
|
||||||
|
"unicode-ident",
|
||||||
|
]
|
||||||
@@ -4,3 +4,5 @@ version = "0.1.0"
|
|||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
base64 = "0.23.1"
|
||||||
|
uuid = { version = "1.27.0", features = ["v4"] }
|
||||||
|
|||||||
6
uczelnia/3_semestr/rust/laby/lab1/src/gcd.rs
Normal file
6
uczelnia/3_semestr/rust/laby/lab1/src/gcd.rs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
pub fn gcd(mut a: usize, mut b: usize) -> usize {
|
||||||
|
while b != 0 {
|
||||||
|
(b, a) = (a % b, b);
|
||||||
|
}
|
||||||
|
a
|
||||||
|
}
|
||||||
3
uczelnia/3_semestr/rust/laby/lab1/src/gcd.s
Normal file
3
uczelnia/3_semestr/rust/laby/lab1/src/gcd.s
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.file "gcd.6643139bf81a864-cgu.0"
|
||||||
|
.ident "rustc version 1.98.1 (48a229cea 2026-09-01) (built from a source tarball)"
|
||||||
|
.section ".note.GNU-stack","",@progbits
|
||||||
57
uczelnia/3_semestr/rust/laby/lab1/src/gcd_bez.s
Normal file
57
uczelnia/3_semestr/rust/laby/lab1/src/gcd_bez.s
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
.file "gcd.6643139bf81a864-cgu.0"
|
||||||
|
.section .text._RNvCsy1jhtvzCfM_3gcd3gcd,"ax",@progbits
|
||||||
|
.globl _RNvCsy1jhtvzCfM_3gcd3gcd
|
||||||
|
.p2align 4
|
||||||
|
.type _RNvCsy1jhtvzCfM_3gcd3gcd,@function
|
||||||
|
_RNvCsy1jhtvzCfM_3gcd3gcd:
|
||||||
|
.cfi_startproc
|
||||||
|
subq $40, %rsp
|
||||||
|
.cfi_def_cfa_offset 48
|
||||||
|
movq %rdi, 24(%rsp)
|
||||||
|
movq %rsi, 32(%rsp)
|
||||||
|
.LBB0_1:
|
||||||
|
cmpq $0, 32(%rsp)
|
||||||
|
jne .LBB0_3
|
||||||
|
movq 24(%rsp), %rax
|
||||||
|
addq $40, %rsp
|
||||||
|
.cfi_def_cfa_offset 8
|
||||||
|
retq
|
||||||
|
.LBB0_3:
|
||||||
|
.cfi_def_cfa_offset 48
|
||||||
|
movq 24(%rsp), %rax
|
||||||
|
movq %rax, 8(%rsp)
|
||||||
|
movq 32(%rsp), %rax
|
||||||
|
movq %rax, 16(%rsp)
|
||||||
|
cmpq $0, %rax
|
||||||
|
je .LBB0_5
|
||||||
|
movq 16(%rsp), %rcx
|
||||||
|
movq 8(%rsp), %rax
|
||||||
|
xorl %edx, %edx
|
||||||
|
divq %rcx
|
||||||
|
movq 32(%rsp), %rax
|
||||||
|
movq %rdx, 32(%rsp)
|
||||||
|
movq %rax, 24(%rsp)
|
||||||
|
jmp .LBB0_1
|
||||||
|
.LBB0_5:
|
||||||
|
leaq .Lanon.7fcf6383cbbc6b99e4703d6007e30d82.1(%rip), %rdi
|
||||||
|
callq *_RNvNtNtCs6Xa2QwhY5JM_4core9panicking11panic_const23panic_const_rem_by_zero@GOTPCREL(%rip)
|
||||||
|
.Lfunc_end0:
|
||||||
|
.size _RNvCsy1jhtvzCfM_3gcd3gcd, .Lfunc_end0-_RNvCsy1jhtvzCfM_3gcd3gcd
|
||||||
|
.cfi_endproc
|
||||||
|
|
||||||
|
.type .Lanon.7fcf6383cbbc6b99e4703d6007e30d82.0,@object
|
||||||
|
.section .rodata.str1.1,"aMS",@progbits,1
|
||||||
|
.Lanon.7fcf6383cbbc6b99e4703d6007e30d82.0:
|
||||||
|
.asciz "gcd.rs"
|
||||||
|
.size .Lanon.7fcf6383cbbc6b99e4703d6007e30d82.0, 7
|
||||||
|
|
||||||
|
.type .Lanon.7fcf6383cbbc6b99e4703d6007e30d82.1,@object
|
||||||
|
.section .data.rel.ro..Lanon.7fcf6383cbbc6b99e4703d6007e30d82.1,"aw",@progbits
|
||||||
|
.p2align 3, 0x0
|
||||||
|
.Lanon.7fcf6383cbbc6b99e4703d6007e30d82.1:
|
||||||
|
.quad .Lanon.7fcf6383cbbc6b99e4703d6007e30d82.0
|
||||||
|
.asciz "\006\000\000\000\000\000\000\000\003\000\000\000\023\000\000"
|
||||||
|
.size .Lanon.7fcf6383cbbc6b99e4703d6007e30d82.1, 24
|
||||||
|
|
||||||
|
.ident "rustc version 1.98.1 (48a229cea 2026-09-01) (built from a source tarball)"
|
||||||
|
.section ".note.GNU-stack","",@progbits
|
||||||
6
uczelnia/3_semestr/rust/laby/lab1/src/gcd_sub.rs
Normal file
6
uczelnia/3_semestr/rust/laby/lab1/src/gcd_sub.rs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
pub fn gcd_sub(mut a: usize, mut b: usize) -> usize {
|
||||||
|
while a != b {
|
||||||
|
if a > b { a -= b } else { b -= a }
|
||||||
|
}
|
||||||
|
a
|
||||||
|
}
|
||||||
83
uczelnia/3_semestr/rust/laby/lab1/src/gcd_sub.s
Normal file
83
uczelnia/3_semestr/rust/laby/lab1/src/gcd_sub.s
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
.file "gcd_sub.1e33a45d982b2d22-cgu.0"
|
||||||
|
.section .text._RNvCs2ALji1wryY8_7gcd_sub7gcd_sub,"ax",@progbits
|
||||||
|
.globl _RNvCs2ALji1wryY8_7gcd_sub7gcd_sub
|
||||||
|
.p2align 4
|
||||||
|
.type _RNvCs2ALji1wryY8_7gcd_sub7gcd_sub,@function
|
||||||
|
_RNvCs2ALji1wryY8_7gcd_sub7gcd_sub:
|
||||||
|
.cfi_startproc
|
||||||
|
subq $40, %rsp
|
||||||
|
.cfi_def_cfa_offset 48
|
||||||
|
movq %rdi, 24(%rsp)
|
||||||
|
movq %rsi, 32(%rsp)
|
||||||
|
.LBB0_1:
|
||||||
|
movq 24(%rsp), %rax
|
||||||
|
cmpq 32(%rsp), %rax
|
||||||
|
jne .LBB0_3
|
||||||
|
movq 24(%rsp), %rax
|
||||||
|
addq $40, %rsp
|
||||||
|
.cfi_def_cfa_offset 8
|
||||||
|
retq
|
||||||
|
.LBB0_3:
|
||||||
|
.cfi_def_cfa_offset 48
|
||||||
|
movq 24(%rsp), %rax
|
||||||
|
cmpq 32(%rsp), %rax
|
||||||
|
ja .LBB0_5
|
||||||
|
movq 24(%rsp), %rcx
|
||||||
|
movq 32(%rsp), %rax
|
||||||
|
movq %rax, %rdx
|
||||||
|
subq %rcx, %rdx
|
||||||
|
movq %rdx, 16(%rsp)
|
||||||
|
cmpq %rcx, %rax
|
||||||
|
jb .LBB0_7
|
||||||
|
jmp .LBB0_6
|
||||||
|
.LBB0_5:
|
||||||
|
movq 32(%rsp), %rcx
|
||||||
|
movq 24(%rsp), %rax
|
||||||
|
movq %rax, %rdx
|
||||||
|
subq %rcx, %rdx
|
||||||
|
movq %rdx, 8(%rsp)
|
||||||
|
cmpq %rcx, %rax
|
||||||
|
jb .LBB0_9
|
||||||
|
jmp .LBB0_8
|
||||||
|
.LBB0_6:
|
||||||
|
movq 16(%rsp), %rax
|
||||||
|
movq %rax, 32(%rsp)
|
||||||
|
jmp .LBB0_1
|
||||||
|
.LBB0_7:
|
||||||
|
leaq .Lanon.74accf476ba42064f0b195c61eb89188.1(%rip), %rdi
|
||||||
|
callq *_RNvNtNtCs6Xa2QwhY5JM_4core9panicking11panic_const24panic_const_sub_overflow@GOTPCREL(%rip)
|
||||||
|
.LBB0_8:
|
||||||
|
movq 8(%rsp), %rax
|
||||||
|
movq %rax, 24(%rsp)
|
||||||
|
jmp .LBB0_1
|
||||||
|
.LBB0_9:
|
||||||
|
leaq .Lanon.74accf476ba42064f0b195c61eb89188.2(%rip), %rdi
|
||||||
|
callq *_RNvNtNtCs6Xa2QwhY5JM_4core9panicking11panic_const24panic_const_sub_overflow@GOTPCREL(%rip)
|
||||||
|
.Lfunc_end0:
|
||||||
|
.size _RNvCs2ALji1wryY8_7gcd_sub7gcd_sub, .Lfunc_end0-_RNvCs2ALji1wryY8_7gcd_sub7gcd_sub
|
||||||
|
.cfi_endproc
|
||||||
|
|
||||||
|
.type .Lanon.74accf476ba42064f0b195c61eb89188.0,@object
|
||||||
|
.section .rodata.str1.1,"aMS",@progbits,1
|
||||||
|
.Lanon.74accf476ba42064f0b195c61eb89188.0:
|
||||||
|
.asciz "gcd_sub.rs"
|
||||||
|
.size .Lanon.74accf476ba42064f0b195c61eb89188.0, 11
|
||||||
|
|
||||||
|
.type .Lanon.74accf476ba42064f0b195c61eb89188.1,@object
|
||||||
|
.section .data.rel.ro..Lanon.74accf476ba42064f0b195c61eb89188.1,"aw",@progbits
|
||||||
|
.p2align 3, 0x0
|
||||||
|
.Lanon.74accf476ba42064f0b195c61eb89188.1:
|
||||||
|
.quad .Lanon.74accf476ba42064f0b195c61eb89188.0
|
||||||
|
.asciz "\n\000\000\000\000\000\000\000\003\000\000\000$\000\000"
|
||||||
|
.size .Lanon.74accf476ba42064f0b195c61eb89188.1, 24
|
||||||
|
|
||||||
|
.type .Lanon.74accf476ba42064f0b195c61eb89188.2,@object
|
||||||
|
.section .data.rel.ro..Lanon.74accf476ba42064f0b195c61eb89188.2,"aw",@progbits
|
||||||
|
.p2align 3, 0x0
|
||||||
|
.Lanon.74accf476ba42064f0b195c61eb89188.2:
|
||||||
|
.quad .Lanon.74accf476ba42064f0b195c61eb89188.0
|
||||||
|
.asciz "\n\000\000\000\000\000\000\000\003\000\000\000\024\000\000"
|
||||||
|
.size .Lanon.74accf476ba42064f0b195c61eb89188.2, 24
|
||||||
|
|
||||||
|
.ident "rustc version 1.98.1 (48a229cea 2026-09-01) (built from a source tarball)"
|
||||||
|
.section ".note.GNU-stack","",@progbits
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
use uuid::Uuid;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello, world!");
|
let id = Uuid::new_v4();
|
||||||
|
println!("ID: {id}");
|
||||||
}
|
}
|
||||||
|
|||||||
30
uczelnia/3_semestr/sieci_komputerowe/sieci.md
Normal file
30
uczelnia/3_semestr/sieci_komputerowe/sieci.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
Pierwsze 3 wykłady obowiązkowe
|
||||||
|
|
||||||
|
# Tcp IP
|
||||||
|
3 warstaw osi
|
||||||
|
Stos – połączenie dwóch warstw
|
||||||
|
|
||||||
|
Na zaliczeniu: ipv4 tcp: source/destination(sockety) port tcp, sequence number tcp, confirmation number tcp, data alignment
|
||||||
|
|
||||||
|
Porty niskie < 1024
|
||||||
|
Porty wysokie: kilkadziesiąt tysięcy ; > 1024
|
||||||
|
|
||||||
|
# Udp
|
||||||
|
Rzuca pakietami
|
||||||
|
|
||||||
|
# IP
|
||||||
|
- Wersja
|
||||||
|
- Długość nagłówka internetu
|
||||||
|
- Rodzaj usługi
|
||||||
|
- Długość całkowita
|
||||||
|
- Identyfikator
|
||||||
|
- Flagi
|
||||||
|
- Przesunięcie fragmentu
|
||||||
|
- Czas życia
|
||||||
|
- Protokół
|
||||||
|
- Suma kontrolna
|
||||||
|
- Adres źródłowy
|
||||||
|
- Adres docelowy
|
||||||
|
- Wypełnienie
|
||||||
|
|
||||||
|
Router wyrzuca pakiet z ttl $0$
|
||||||
Reference in New Issue
Block a user