diff --git a/infolabs/assembly/report.md b/infolabs/assembly/report.md index bf0a987..d3d0eb3 100644 --- a/infolabs/assembly/report.md +++ b/infolabs/assembly/report.md @@ -1,5 +1,9 @@ # Генерация и анализ ассемблерного кода программы на C + --- + +## main.c + ```c void inc(int *p){(*p)++;} void dec(int *p){(*p)--;} @@ -14,7 +18,10 @@ int main(){ } ``` +--- + ## linux_x86_64_numbered.s + ```asm 1 .file "main.c" 2 .text @@ -101,7 +108,10 @@ int main(){ 83 .section .note.GNU-stack,"",@progbits ``` -## windows_x86_64_numbered.s +--- + +# windows_x86_64_numbered.s + ```asm 1 .file "main.c" 2 .text @@ -171,8 +181,11 @@ int main(){ 66 .ident "GCC: (GNU) 15.2.0" ``` -## riscv64_numbered.s -``` +--- + +# riscv64_numbered.s + +```asm 1 .file "main.c" 2 .option pic 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 ``` -## gcc_version +--- + +## INFO + +--- +### gcc_version + gcc (GCC) 15.2.1 20251112 Copyright (C) 2025 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +--- -## linux_gcc_version +### linux_gcc_version gcc (GCC) 15.2.1 20251112 Copyright (C) 2025 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +--- -## mingw_version +### mingw_version x86_64-w64-mingw32-gcc (GCC) 15.2.0 Copyright (C) 2025 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +--- -# riscv_version +### riscv_version riscv64-linux-gnu-gcc (GCC) 15.1.0 Copyright (C) 2025 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO 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 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" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo -