MGM2006-08-02 18:35:44
我的目的就是用linux system call: write, 来实现pascal 中的标准输出write(). 可是,我运行的结果是 'VT102', 用debugger 发现有segmentation fault (我改用C 语言里的printf, 然后用gcc 编译, 输出的就是正确的). 有没有哪位熟悉汇编语言中使用Linux system call 的愿意帮我看看是什么问题? 十分感谢。。
德州老外2006-08-02 18:59:17
Then why don't you copy the compiled code and patch it in yours
MGM2006-08-02 19:49:49
看来热心人挺多的。我的具体问题是。。
MGM2006-08-02 20:05:37
but gcc will produce the obj file and exe file, not useful to me
MGM2006-08-02 20:51:13
我试过,不是exit 的缘故。有了exit call 也不行
MGM2006-08-02 21:30:53
strange, I attached your code to the end, still get seg-fault.
MGM2006-08-02 22:03:16
still not working..
MGM2006-08-02 22:04:13
still, not working..