inf 3 minore md update

This commit is contained in:
2025-11-27 12:09:05 +07:00
parent 96dc65fac0
commit 61fc422fc2
+31 -9
View File
@@ -1,5 +1,9 @@
# Генерация и анализ ассемблерного кода программы на C # Генерация и анализ ассемблерного кода программы на C
--- ---
## main.c
```c ```c
void inc(int *p){(*p)++;} void inc(int *p){(*p)++;}
void dec(int *p){(*p)--;} void dec(int *p){(*p)--;}
@@ -14,7 +18,10 @@ int main(){
} }
``` ```
---
## linux_x86_64_numbered.s ## linux_x86_64_numbered.s
```asm ```asm
1 .file "main.c" 1 .file "main.c"
2 .text 2 .text
@@ -101,7 +108,10 @@ int main(){
83 .section .note.GNU-stack,"",@progbits 83 .section .note.GNU-stack,"",@progbits
``` ```
## windows_x86_64_numbered.s ---
# windows_x86_64_numbered.s
```asm ```asm
1 .file "main.c" 1 .file "main.c"
2 .text 2 .text
@@ -171,8 +181,11 @@ int main(){
66 .ident "GCC: (GNU) 15.2.0" 66 .ident "GCC: (GNU) 15.2.0"
``` ```
## riscv64_numbered.s ---
```
# riscv64_numbered.s
```asm
1 .file "main.c" 1 .file "main.c"
2 .option pic 2 .option pic
3 .attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0_zaamo1p0_zalrsc1p0_zca1p0_zcd1p0" 3 .attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0_zaamo1p0_zalrsc1p0_zca1p0_zcd1p0"
@@ -284,35 +297,45 @@ int main(){
109 .section .note.GNU-stack,"",@progbits 109 .section .note.GNU-stack,"",@progbits
``` ```
## gcc_version ---
## INFO
---
### gcc_version
gcc (GCC) 15.2.1 20251112 gcc (GCC) 15.2.1 20251112
Copyright (C) 2025 Free Software Foundation, Inc. Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
---
## linux_gcc_version ### linux_gcc_version
gcc (GCC) 15.2.1 20251112 gcc (GCC) 15.2.1 20251112
Copyright (C) 2025 Free Software Foundation, Inc. Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
---
## mingw_version ### mingw_version
x86_64-w64-mingw32-gcc (GCC) 15.2.0 x86_64-w64-mingw32-gcc (GCC) 15.2.0
Copyright (C) 2025 Free Software Foundation, Inc. Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
---
# riscv_version ### riscv_version
riscv64-linux-gnu-gcc (GCC) 15.1.0 riscv64-linux-gnu-gcc (GCC) 15.1.0
Copyright (C) 2025 Free Software Foundation, Inc. Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
---
## sysinfo ### sysinfo
Linux archlinux 6.17.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 14 Nov 2025 06:54:20 +0000 x86_64 GNU/Linux Linux archlinux 6.17.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 14 Nov 2025 06:54:20 +0000 x86_64 GNU/Linux
NAME="Arch Linux" NAME="Arch Linux"
PRETTY_NAME="Arch Linux" PRETTY_NAME="Arch Linux"
@@ -325,4 +348,3 @@ SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo LOGO=archlinux-logo