处理源代码 [英] Dealing with source code

查看:65
本文介绍了处理源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何处理源代码?需要什么格式的源文件才能编译?b $ b编译?我在

html页面上有源代码,或者是.txt格式(这是汇编程序,而不是c,但是

没有太大区别,我认为)。什么合适的编辑器来编辑源代码?

记事本?需要保存什么格式的源?我需要编译Nasm源

到exe,参数是:


nasmw -s -fbin -o filename.s filename.asm


我应该从MS-DOS窗口运行Nasm还是从Run框运行?


m。

How to deal with source code? What format need be source files to
compile? I have source code on
html pages, or in .txt format (this is assembler, not c, but there is
no big difference, i think). What suitable editor to edit source code?
Notepad? What format source need be saved? I need compile Nasm source
into exe, parameters is:

nasmw -s -fbin -o filename.s filename.asm

should I run Nasm from MS-DOS window or from Run box?

m.

推荐答案




10月6日下午4:45,迷雾 < polych ... @softhome.netwrote:


On Oct 6, 4:45 pm, "mistral" <polych...@softhome.netwrote:

如何处理源代码?需要什么格式的源文件才能编译?b $ b编译?我在

html页面上有源代码,或者是.txt格式(这是汇编程序,而不是c,但是

没有太大区别,我认为)。什么合适的编辑器来编辑源代码?

记事本?需要保存什么格式的源?我需要编译Nasm源

到exe,参数是:


nasmw -s -fbin -o filename.s filename.asm


m。
How to deal with source code? What format need be source files to
compile? I have source code on
html pages, or in .txt format (this is assembler, not c, but there is
no big difference, i think). What suitable editor to edit source code?
Notepad? What format source need be saved? I need compile Nasm source
into exe, parameters is:

nasmw -s -fbin -o filename.s filename.asm

should I run Nasm from MS-DOS window or from Run box?

m.



这里的主题不在这里。

您似乎在Microsoft Windows中工作。当然,您可以在MS-DOS窗口中运行

命令。

您可以使用UltraEdit编辑源代码。

It''s off topic here.
It seems that you work in Microsoft Windows. You can, of course, run
that command in a MS-DOS window.
And you can edit the source code with UltraEdit.


mistral写道:
mistral wrote:

什么合适的编辑器来编辑源代码?
What suitable editor to edit source code?



适用于Windows IDE的Zeus: http:/ /www.zeusedit.com


Jussi Jumppanen

作者:Zeus for Windows IDE

Zeus for Windows IDE: http://www.zeusedit.com

Jussi Jumppanen
Author: Zeus for Windows IDE


mistral写道:
mistral wrote:

>

如何处理源代码?需要什么格式的源文件才能编译?b $ b编译?我在

html页面上有源代码,或者是.txt格式(这是汇编程序,而不是c,但是

没有太大区别,我认为)。什么合适的编辑器来编辑源代码?

记事本?需要保存什么格式的源?
>
How to deal with source code? What format need be source files to
compile? I have source code on
html pages, or in .txt format (this is assembler, not c, but there is
no big difference, i think). What suitable editor to edit source code?
Notepad? What format source need be saved?



C程序由文本文件组成。

有些编译器需要C程序文件的名称

以.c结尾,特别是一个点后跟一个小写c。

C程序中的其他文件名还可以有其他扩展名。


-

pete

C programs are made of text files.
Some compilers expect the name of a C program file
to end in .c, that''s specifically a dot followed by a lower case c.
There can also be other extensions on other filenames in a C program.

--
pete


这篇关于处理源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆