加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tcctok.h 17.76 KB
一键复制 编辑 原始数据 按行查看 历史
阙博凯 提交于 2023-07-30 15:21 . The Chinese Compiler cn.0.1
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
/* keywords */
DEF(TOK_GENERIC, "_Generic")
DEF(TOK_ATTRIBUTE1, "__attribute")
DEF(TOK_ATTRIBUTE2, "__attribute__")
DEF(TOK_ALIGNOF1, "__alignof")
DEF(TOK_ALIGNOF2, "__alignof__")
DEF(TOK_ALIGNOF3, "_Alignof")
DEF(TOK_LABEL, "__label__")
DEF(TOK_ASM1, "asm")
DEF(TOK_ASM2, "__asm")
DEF(TOK_ASM3, "__asm__")
/**************************************************关键词--开始**************************************************/
/*数据类型(只在语法分析解析声明说明符的时候用到一次)*/
DEF(_, "void")
DEF(_短整数, "short")
DEF(_整数, "int")
DEF(_长整数, "long")
DEF(_浮点, "float")
DEF(_双精度, "double")
DEF(_字符, "char")
DEF(_布尔, "_Bool")
/*
DEF(TOK_VOID, "void")
DEF(TOK_SHORT, "short")
DEF(TOK_INT, "int")
DEF(TOK_LONG, "long")
DEF(TOK_FLOAT, "float")
DEF(TOK_DOUBLE, "double")
DEF(TOK_CHAR, "char")
DEF(TOK_BOOL, "_Bool")
*/
DEF(_, "无")
DEF(_短整数, "短整数")
DEF(_整数, "整数")
DEF(_长整数, "长整数")
DEF(_浮点, "浮点")
DEF(_双精度, "双精度")
DEF(_字符, "字符")
DEF(_布尔, "布尔")
/*流程控制(基本上都在语法分析块中使用)*/
DEF(_如果, "if")
DEF(_否则, "else")
DEF(_选择, "switch")//到这
DEF(_分支, "case")
DEF(_执行, "do")
DEF(_判断, "while")
DEF(_循环, "for")
DEF(_继续, "continue")
DEF(_转到, "goto")
DEF(_跳出, "break")
DEF(_返回, "return")
/*
DEF(TOK_IF, "if")
DEF(TOK_ELSE, "else")
DEF(TOK_SWITCH, "switch")
DEF(TOK_CASE, "case")
DEF(TOK_DO, "do")
DEF(TOK_WHILE, "while")
DEF(TOK_FOR, "for")
DEF(TOK_CONTINUE, "continue")
DEF(TOK_GOTO, "goto")
DEF(TOK_BREAK, "break")
DEF(TOK_RETURN, "return")
*/
DEF(_如果, "如果")
DEF(_否则, "否则")
DEF(_选择, "选择")
DEF(_分支, "分支")
DEF(_执行, "执行")
DEF(_判断, "判断")
DEF(_循环, "循环")
DEF(_继续, "继续")
DEF(_转到, "转到")
DEF(_跳出, "跳出")
DEF(_返回, "返回")
/*其他*/
DEF(_外部, "extern")
DEF(_静态, "static")
DEF(_无符号, "unsigned")
DEF(_有符号1, "signed")
DEF(_有符号2, "__signed") //gcc keyword
DEF(_有符号3, "__signed__") // gcc keyword
DEF(_取类型1, "typeof")
DEF(_取类型2, "__typeof")
DEF(_取类型3, "__typeof__")
DEF(_取大小, "sizeof")
DEF(_常量1, "const")
DEF(_常量2, "__const") // gcc keyword
DEF(_常量3, "__const__") // gcc keyword
DEF(_寄存器, "register")
DEF(_内联1, "inline")
DEF(_内联2, "__inline") // gcc keyword
DEF(_内联3, "__inline__") // gcc keyword
DEF(_易变1, "volatile")
DEF(_易变2, "__volatile") // gcc keyword
DEF(_易变3, "__volatile__") // gcc keyword
DEF(_结构体, "struct")
DEF(_共用体, "union")
DEF(_枚举, "enum")
DEF(_类型定义, "typedef")
DEF(_默认, "default")
DEF(_自动, "auto")
DEF(_限制1, "restrict")
DEF(_限制2, "__restrict")
DEF(_限制3, "__restrict__")
DEF(_静态_断言, "_Static_assert")
/*
DEF(TOK_EXTERN, "extern")
DEF(TOK_STATIC, "static")
DEF(TOK_UNSIGNED, "unsigned")
DEF(TOK_SIGNED1, "signed")
DEF(TOK_SIGNED2, "__signed") // gcc keyword
DEF(TOK_SIGNED3, "__signed__") // gcc keyword
DEF(TOK_TYPEOF1, "typeof")
DEF(TOK_TYPEOF2, "__typeof")
DEF(TOK_TYPEOF3, "__typeof__")
DEF(TOK_SIZEOF, "sizeof")
DEF(TOK_CONST1, "const")
DEF(TOK_CONST2, "__const") // gcc keyword
DEF(TOK_CONST3, "__const__") // gcc keyword
DEF(TOK_REGISTER, "register")
DEF(TOK_INLINE1, "inline")
DEF(TOK_INLINE2, "__inline") // gcc keyword
DEF(TOK_INLINE3, "__inline__") // gcc keyword 英_易变
DEF(TOK_VOLATILE1, "volatile")
DEF(TOK_VOLATILE2, "__volatile") // gcc keyword
DEF(TOK_VOLATILE3, "__volatile__") // gcc keyword
DEF(TOK_STRUCT, "struct")
DEF(TOK_UNION, "union")
DEF(TOK_ENUM, "enum")
DEF(TOK_TYPEDEF, "typedef")
DEF(TOK_DEFAULT, "default")
DEF(TOK_AUTO, "auto")
DEF(TOK_RESTRICT1, "restrict")
DEF(TOK_RESTRICT2, "__restrict")
DEF(TOK_RESTRICT3, "__restrict__")
DEF(TOK_STATIC_ASSERT, "_Static_assert")
*/
DEF(_外部, "外部")
DEF(_静态, "静态")
DEF(_无符号, "无符号")
DEF(_有符号1, "有符号")
DEF(_有符号2, "__有符号") //gcc keyword
DEF(_有符号3, "__有符号__") // gcc keyword
DEF(_取类型1, "取类型")
DEF(_取类型2, "__取类型")
DEF(_取类型3, "__取类型__")
DEF(_取大小, "取大小")
DEF(_常量1, "常量")
DEF(_常量2, "__常量") // gcc keyword
DEF(_常量3, "__常量__") // gcc keyword
DEF(_寄存器, "寄存器")
DEF(_内联1, "内联")
DEF(_内联2, "__内联") // gcc keyword
DEF(_内联3, "__内联__") // gcc keyword
DEF(_易变1, "易变")
DEF(_易变2, "__易变") // gcc keyword
DEF(_易变3, "__易变__") // gcc keyword
DEF(_结构体, "结构体")
DEF(_共用体, "共用体")
DEF(_枚举, "枚举")
DEF(_类型定义, "类型定义")
DEF(_默认, "默认")
DEF(_自动, "自动")
DEF(_限制1, "限制")
DEF(_限制2, "__限制")
DEF(_限制3, "__限制__")
DEF(_静态_断言, "静态断言")
/*
DEF(英__原子, "_Atomic")
*/
DEF(_扩展, "__extension__") // gcc keyword
DEF(_对齐, "_Alignas")
/*
DEF(TOK_EXTENSION, "__extension__") // gcc keyword
DEF(TOK_ALIGNAS, "_Alignas")
*/
DEF(_扩展, "扩展") // gcc keyword
DEF(_对齐, "对齐")
/**************************************************关键词--结束**************************************************/
#ifdef TCC_TARGET_ARM64
DEF(TOK_UINT128, "__uint128_t")
#endif
/*********************************************************************/
/* the following are not keywords. They are included to ease parsing */
/* preprocessor only */
DEF(_导入, "include")
DEF(_导入下一个, "include_next")
DEF(_定义, "define")
DEF(_如果已定义, "ifdef")
DEF(_如果未定义, "ifndef")
DEF(_否则如果, "elif")
DEF(_结束如果, "endif")
DEF(_已定义, "defined")
DEF(_结束定义, "undef")
DEF(_错误, "error")
DEF(_警告, "warning")
DEF(_行号, "line")
DEF(_指示, "pragma")
/*
DEF(TOK_INCLUDE, "include")
DEF(TOK_INCLUDE_NEXT, "include_next")
DEF(TOK_DEFINE, "define")
DEF(TOK_IFDEF, "ifdef")
DEF(TOK_IFNDEF, "ifndef")
DEF(TOK_ELIF, "elif")
DEF(TOK_ENDIF, "endif")
DEF(TOK_DEFINED, "defined")
DEF(TOK_UNDEF, "undef")
DEF(TOK_ERROR, "error")
DEF(TOK_WARNING, "warning")
DEF(TOK_LINE, "line")
DEF(TOK_PRAGMA, "pragma")
*/
DEF(_导入, "导入")
DEF(_导入下一个, "导入下一个")
DEF(_定义, "定义")
DEF(_如果已定义, "如果已定义")
DEF(_如果未定义, "如果未定义")
DEF(_否则如果, "否则如果")
DEF(_结束如果, "结束如果")
DEF(_已定义, "已定义")
DEF(_结束定义, "结束定义")
DEF(_错误, "错误")
DEF(_警告, "警告")
DEF(_行号, "行号")
DEF(_指示, "指示")
DEF(TOK___LINE__, "__LINE__")
DEF(TOK___FILE__, "__FILE__")
DEF(TOK___DATE__, "__DATE__")
DEF(TOK___TIME__, "__TIME__")
DEF(TOK___FUNCTION__, "__FUNCTION__")
DEF(TOK___VA_ARGS__, "__VA_ARGS__")
DEF(TOK___COUNTER__, "__COUNTER__")
DEF(TOK___HAS_INCLUDE, "__has_include")
/* 特殊标识符 */
/* special identifiers */
DEF(TOK___FUNC__, "__func__")
/* 特殊浮点值 */
/* special floating point values */
DEF(TOK___NAN__, "__nan__")
DEF(TOK___SNAN__, "__snan__")
DEF(TOK___INF__, "__inf__")
/* 属性标识符 */
/* attribute identifiers */
/* XXX: 一般处理所有单词,因为速度并不重要 */
/* XXX: handle all tokens generically since speed is not critical */
//DEF(TOK_SECTION1, "section")
DEF(_1, "section")
DEF(_1, "节")
// DEF(TOK_SECTION2, "__section__")
DEF(_2, "__section__")
DEF(_2, "__节__")
DEF(TOK_ALIGNED1, "aligned")
DEF(TOK_ALIGNED2, "__aligned__")
DEF(TOK_PACKED1, "packed")
DEF(TOK_PACKED2, "__packed__")
DEF(TOK_WEAK1, "weak")
DEF(TOK_WEAK2, "__weak__")
//DEF(TOK_ALIAS1, "alias")
DEF(_别名1, "alias")
DEF(_别名1, "别名")
//DEF(TOK_ALIAS2, "__alias__")
DEF(_别名2, "__alias__")
DEF(_别名2, "__别名__")
DEF(TOK_UNUSED1, "unused")
DEF(TOK_UNUSED2, "__unused__")
DEF(TOK_CDECL1, "cdecl")
DEF(TOK_CDECL2, "__cdecl")
DEF(TOK_CDECL3, "__cdecl__")
DEF(TOK_STDCALL1, "stdcall")
DEF(TOK_STDCALL2, "__stdcall")
DEF(TOK_STDCALL3, "__stdcall__")
DEF(TOK_FASTCALL1, "fastcall")
DEF(TOK_FASTCALL2, "__fastcall")
DEF(TOK_FASTCALL3, "__fastcall__")
DEF(TOK_REGPARM1, "regparm")
DEF(TOK_REGPARM2, "__regparm__")
//DEF(TOK_CLEANUP1, "cleanup")
DEF(_清理1, "cleanup")
DEF(_清理1, "清理")
//DEF(TOK_CLEANUP2, "__cleanup__")
DEF(_清理2, "__cleanup__")
DEF(_清理2, "__清理__")
DEF(TOK_CONSTRUCTOR1, "constructor")
DEF(TOK_CONSTRUCTOR2, "__constructor__")
DEF(TOK_DESTRUCTOR1, "destructor")
DEF(TOK_DESTRUCTOR2, "__destructor__")
DEF(TOK_ALWAYS_INLINE1, "always_inline")
DEF(TOK_ALWAYS_INLINE2, "__always_inline__")
DEF(TOK_MODE, "__mode__")
DEF(TOK_MODE_QI, "__QI__")
DEF(TOK_MODE_DI, "__DI__")
DEF(TOK_MODE_HI, "__HI__")
DEF(TOK_MODE_SI, "__SI__")
DEF(TOK_MODE_word, "__word__")
DEF(TOK_DLLEXPORT, "dllexport")
DEF(TOK_DLLIMPORT, "dllimport")
//DEF(TOK_NODECORATE, "nodecorate")
DEF(_节点, "nodecorate")
DEF(_节点, "节点")
DEF(TOK_NORETURN1, "noreturn")
DEF(TOK_NORETURN2, "__noreturn__")
DEF(TOK_NORETURN3, "_Noreturn")
//DEF(TOK_VISIBILITY1, "visibility")
DEF(_能见度1, "visibility")
DEF(_能见度1, "能见度")
//DEF(TOK_VISIBILITY2, "__visibility__")
DEF(_能见度2, "__visibility__")
DEF(_能见度2, "__能见度__")
DEF(TOK_builtin_types_compatible_p, "__builtin_types_compatible_p")
DEF(TOK_builtin_choose_expr, "__builtin_choose_expr")
DEF(TOK_builtin_constant_p, "__builtin_constant_p")
DEF(TOK_builtin_frame_address, "__builtin_frame_address")
DEF(TOK_builtin_return_address, "__builtin_return_address")
DEF(TOK_builtin_expect, "__builtin_expect")
/*DEF(TOK_builtin_va_list, "__builtin_va_list")*/
#if defined TCC_TARGET_PE && defined TCC_TARGET_X86_64
DEF(TOK_builtin_va_start, "__builtin_va_start")
#elif defined TCC_TARGET_X86_64
DEF(TOK_builtin_va_arg_types, "__builtin_va_arg_types")
#elif defined TCC_TARGET_ARM64
DEF(TOK_builtin_va_start, "__builtin_va_start")
DEF(TOK_builtin_va_arg, "__builtin_va_arg")
#elif defined TCC_TARGET_RISCV64
DEF(TOK_builtin_va_start, "__builtin_va_start")
#endif
/* pragma */
DEF(TOK_pack, "pack")
#if !defined(TCC_TARGET_I386) && !defined(TCC_TARGET_X86_64)
/* 已经为汇编器定义 */
/* already defined for assembler */
DEF(TOK_ASM_push, "push")
DEF(TOK_ASM_pop, "pop")
#endif
//DEF(TOK_comment, "comment")
DEF(_注解, "comment")
DEF(_注解, "注解")
//DEF(TOK_lib, "lib")
DEF(_, "lib")
DEF(_, "库")
DEF(TOK_push_macro, "push_macro")
DEF(TOK_pop_macro, "pop_macro")
DEF(TOK_once, "once")
DEF(TOK_option, "option")
/* builtin functions or variables */
#ifndef TCC_ARM_EABI
DEF(TOK_memcpy, "memcpy")
DEF(TOK_memmove, "memmove")
DEF(TOK_memset, "memset")
DEF(TOK___divdi3, "__divdi3")
DEF(TOK___moddi3, "__moddi3")
DEF(TOK___udivdi3, "__udivdi3")
DEF(TOK___umoddi3, "__umoddi3")
DEF(TOK___ashrdi3, "__ashrdi3")
DEF(TOK___lshrdi3, "__lshrdi3")
DEF(TOK___ashldi3, "__ashldi3")
DEF(TOK___floatundisf, "__floatundisf")
DEF(TOK___floatundidf, "__floatundidf")
# ifndef TCC_ARM_VFP
DEF(TOK___floatundixf, "__floatundixf")
DEF(TOK___fixunsxfdi, "__fixunsxfdi")
# endif
DEF(TOK___fixunssfdi, "__fixunssfdi")
DEF(TOK___fixunsdfdi, "__fixunsdfdi")
#endif
#if defined TCC_TARGET_ARM
# ifdef TCC_ARM_EABI
DEF(TOK_memcpy, "__aeabi_memcpy")
DEF(TOK_memmove, "__aeabi_memmove")
DEF(TOK_memmove4, "__aeabi_memmove4")
DEF(TOK_memmove8, "__aeabi_memmove8")
DEF(TOK_memset, "__aeabi_memset")
DEF(TOK___aeabi_ldivmod, "__aeabi_ldivmod")
DEF(TOK___aeabi_uldivmod, "__aeabi_uldivmod")
DEF(TOK___aeabi_idivmod, "__aeabi_idivmod")
DEF(TOK___aeabi_uidivmod, "__aeabi_uidivmod")
DEF(TOK___divsi3, "__aeabi_idiv")
DEF(TOK___udivsi3, "__aeabi_uidiv")
DEF(TOK___floatdisf, "__aeabi_l2f")
DEF(TOK___floatdidf, "__aeabi_l2d")
DEF(TOK___fixsfdi, "__aeabi_f2lz")
DEF(TOK___fixdfdi, "__aeabi_d2lz")
DEF(TOK___ashrdi3, "__aeabi_lasr")
DEF(TOK___lshrdi3, "__aeabi_llsr")
DEF(TOK___ashldi3, "__aeabi_llsl")
DEF(TOK___floatundisf, "__aeabi_ul2f")
DEF(TOK___floatundidf, "__aeabi_ul2d")
DEF(TOK___fixunssfdi, "__aeabi_f2ulz")
DEF(TOK___fixunsdfdi, "__aeabi_d2ulz")
# else
DEF(TOK___modsi3, "__modsi3")
DEF(TOK___umodsi3, "__umodsi3")
DEF(TOK___divsi3, "__divsi3")
DEF(TOK___udivsi3, "__udivsi3")
DEF(TOK___floatdisf, "__floatdisf")
DEF(TOK___floatdidf, "__floatdidf")
# ifndef TCC_ARM_VFP
DEF(TOK___floatdixf, "__floatdixf")
DEF(TOK___fixunssfsi, "__fixunssfsi")
DEF(TOK___fixunsdfsi, "__fixunsdfsi")
DEF(TOK___fixunsxfsi, "__fixunsxfsi")
DEF(TOK___fixxfdi, "__fixxfdi")
# endif
DEF(TOK___fixsfdi, "__fixsfdi")
DEF(TOK___fixdfdi, "__fixdfdi")
# endif
#endif
#if defined TCC_TARGET_C67
DEF(TOK__divi, "_divi")
DEF(TOK__divu, "_divu")
DEF(TOK__divf, "_divf")
DEF(TOK__divd, "_divd")
DEF(TOK__remi, "_remi")
DEF(TOK__remu, "_remu")
#endif
#if defined TCC_TARGET_I386
DEF(TOK___fixsfdi, "__fixsfdi")
DEF(TOK___fixdfdi, "__fixdfdi")
DEF(TOK___fixxfdi, "__fixxfdi")
#endif
#if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64
DEF(TOK_alloca, "alloca")
#endif
#if defined TCC_TARGET_PE
DEF(TOK___chkstk, "__chkstk")
#endif
#if defined TCC_TARGET_ARM64 || defined TCC_TARGET_RISCV64
DEF(TOK___arm64_clear_cache, "__arm64_clear_cache")
DEF(TOK___addtf3, "__addtf3")
DEF(TOK___subtf3, "__subtf3")
DEF(TOK___multf3, "__multf3")
DEF(TOK___divtf3, "__divtf3")
DEF(TOK___extendsftf2, "__extendsftf2")
DEF(TOK___extenddftf2, "__extenddftf2")
DEF(TOK___trunctfsf2, "__trunctfsf2")
DEF(TOK___trunctfdf2, "__trunctfdf2")
DEF(TOK___fixtfsi, "__fixtfsi")
DEF(TOK___fixtfdi, "__fixtfdi")
DEF(TOK___fixunstfsi, "__fixunstfsi")
DEF(TOK___fixunstfdi, "__fixunstfdi")
DEF(TOK___floatsitf, "__floatsitf")
DEF(TOK___floatditf, "__floatditf")
DEF(TOK___floatunsitf, "__floatunsitf")
DEF(TOK___floatunditf, "__floatunditf")
DEF(TOK___eqtf2, "__eqtf2")
DEF(TOK___netf2, "__netf2")
DEF(TOK___lttf2, "__lttf2")
DEF(TOK___letf2, "__letf2")
DEF(TOK___gttf2, "__gttf2")
DEF(TOK___getf2, "__getf2")
#endif
/* bound checking symbols */
#ifdef CONFIG_TCC_BCHECK
DEF(TOK___bound_ptr_add, "__bound_ptr_add")
DEF(TOK___bound_ptr_indir1, "__bound_ptr_indir1")
DEF(TOK___bound_ptr_indir2, "__bound_ptr_indir2")
DEF(TOK___bound_ptr_indir4, "__bound_ptr_indir4")
DEF(TOK___bound_ptr_indir8, "__bound_ptr_indir8")
DEF(TOK___bound_ptr_indir12, "__bound_ptr_indir12")
DEF(TOK___bound_ptr_indir16, "__bound_ptr_indir16")
DEF(TOK___bound_main_arg, "__bound_main_arg")
DEF(TOK___bound_local_new, "__bound_local_new")
DEF(TOK___bound_local_delete, "__bound_local_delete")
DEF(TOK___bound_setjmp, "__bound_setjmp")
DEF(TOK___bound_new_region, "__bound_new_region")
# ifdef TCC_TARGET_PE
# ifdef TCC_TARGET_X86_64
DEF(TOK___bound_alloca_nr, "__bound_alloca_nr")
# endif
# else
DEF(TOK_sigsetjmp, "sigsetjmp")
DEF(TOK___sigsetjmp, "__sigsetjmp")
DEF(TOK_siglongjmp, "siglongjmp")
# endif
DEF(TOK_setjmp, "setjmp")
DEF(TOK__setjmp, "_setjmp")
#endif
/* 小汇编器 */
/* Tiny Assembler */
DEF_ASMDIR(byte) /* 必须是第一个指令 *//* must be first directive */
DEF_ASMDIR(word)
DEF_ASMDIR(align)
DEF_ASMDIR(对齐)
DEF_ASMDIR(balign)
DEF_ASMDIR(p2align)
DEF_ASMDIR(set)
DEF_ASMDIR(skip)
DEF_ASMDIR(跳过)
DEF_ASMDIR(space)
DEF_ASMDIR(string)
DEF_ASMDIR(asciz)
DEF_ASMDIR(ascii)
DEF_ASMDIR(file)
DEF_ASMDIR(文件)
DEF_ASMDIR(globl)
DEF_ASMDIR(global)
DEF_ASMDIR(weak)
DEF_ASMDIR(hidden)
DEF_ASMDIR(ident)
DEF_ASMDIR(size)
DEF_ASMDIR(大小)
DEF_ASMDIR(type)
DEF_ASMDIR(类型)
DEF_ASMDIR(text)
DEF_ASMDIR(代码)
DEF_ASMDIR(data)
DEF_ASMDIR(数据)
DEF_ASMDIR(bss)
DEF_ASMDIR(previous)
DEF_ASMDIR(pushsection)
DEF_ASMDIR(popsection)
DEF_ASMDIR(fill)
DEF_ASMDIR(rept)
DEF_ASMDIR(endr)
DEF_ASMDIR(org)
DEF_ASMDIR(quad)
#if defined(TCC_TARGET_I386)
DEF_ASMDIR(code16)
DEF_ASMDIR(code32)
#elif defined(TCC_TARGET_X86_64)
DEF_ASMDIR(code64)
#endif
DEF_ASMDIR(short)
DEF_ASMDIR(long)
DEF_ASMDIR(int)
DEF_ASMDIR(section) /* 必须是最后一个指令 *//* must be last directive */
#if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64
#include "i386-tok.h"
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化