GCC
-
查找printf()函数的返回值
$gcc -o main *.c $main 212 F is water's boiling point. The printf() function printed 3…
-
转义序列/n与多个printf函数调用
以下代码段生成三个单独的行,只有一个printf()函数。 #include <stdio.h> int main(){ printf("line 1/nli…
-
使用getchar()函数暂停控制台窗口
使用GNU编译器 – gcc myapp.c -o myapp.exe ./myapp.exe Hello World 示例代码: #include <stdio…
-
汇编DIV/IDIV指令
section .text global _start ;must be declared for using gcc _start: ;tell linker entry poi…
-
汇编ADD和SUB
SYS_EXIT equ 1 SYS_READ equ 3 SYS_WRITE equ 4 STDIN equ 0 STDOUT equ 1 segment .data msg1 …
-
汇编内存管理
section .text global _start ;must be declared for using gcc _start: ;tell linker entry poi…
-
汇编宏
; A macro with two parameters ; Implements the write system call %macro write_string 2 mov…
-
汇编递归
section .text global _start ;must be declared for using gcc _start: ;tell linker entry poi…
-
汇编过程
section .text global _start ;must be declared for using gcc _start: ;tell linker entry poi…
-
汇编SCAS指令
section .text global _start ;must be declared for using gcc _start: ;tell linker entry poi…