gcc asm

来源:互联网 发布:网络整合营销推广方案 编辑:程序博客网 时间:2024/05/17 04:15
how to use inline assembly language in C codeGCC provides two forms of inline asm statements:a basic asm statement is one with no operandsan extended asm statement includes one or more operandsthe extended form is preferred for mixing C and assembly language within a function, but to include assembly language at top level you must use basic asm.The asm keyword is a GNU extension.When writing code that can be compiled with "-ansi" and the various "-std" options, use __asm__ instead of asm.
0 0
原创粉丝点击