我有一个头文件,定义以下内容:
#define BLA 1
Run Code Online (Sandbox Code Playgroud)
现在我想将这个头文件包含到我的汇编代码中:
#include "myinc.h"
.file "main.c"
.intel_syntax noprefix
.def ___main; .scl 2; .type 32; .endef
.section .rdata,"dr"
LC0:
.ascii "ABCDEFGHIJK.\0"
.text
.globl _main
.def _main; .scl 2; .type 32; .endef
_main:
LFB6:
.cfi_startproc
push ebp
.cfi_def_cfa_offset 8
.cfi_offset 5, -8
mov ebp, esp
.cfi_def_cfa_register 5
and esp, -16
sub esp, 16
call ___main
mov DWORD PTR [esp], OFFSET FLAT:LC0
call _puts
mov eax, 0
mov ebx, BLA
leave
.cfi_restore 5
.cfi_def_cfa 4, 4
ret
.cfi_endproc
LFE6:
.ident …Run Code Online (Sandbox Code Playgroud) assembly ×1