|

楼主 |
发表于 2005-8-19 19:32:39
|
显示全部楼层
Post by daemeon
- #include <stdio.h>
- int main(int argc, char *argv[])
- {
- if (0) {
- hello:
- printf("Hello World\n");
- return 0;
- }
- goto hello;
- }
复制代码
可以用的,gcc可不是一般的聪明.
呵呵,确实很聪明啊
不过我需要的类似于下面这样的代码不被优化掉:
- if(0)
- {
- __asm__("__here:");
- }
- __asm__("jmp __here");
复制代码 |
|