intro-3.html
来自「cc65 的编译器文档」· HTML 代码 · 共 48 行
HTML
48 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD> <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.20"> <TITLE>cc65 compiler intro: The assembler</TITLE> <LINK HREF="intro-4.html" REL=next> <LINK HREF="intro-2.html" REL=previous> <LINK HREF="intro.html#toc3" REL=contents></HEAD><BODY><A HREF="intro-4.html">Next</A><A HREF="intro-2.html">Previous</A><A HREF="intro.html#toc3">Contents</A><HR><H2><A NAME="s3">3.</A> <A HREF="intro.html#toc3">The assembler</A></H2><P>The assembler translates one assembler source into an object file for eachinvocation. The assembler is <CODE>not</CODE> able to translate more than one sourcefile per run.</P><P>Let's translate the hello.s and text.s files from our example:</P><P><BLOCKQUOTE><CODE><PRE> ca65 hello.s ca65 -t c64 text.s</PRE></CODE></BLOCKQUOTE></P><P>The <CODE>-t</CODE> switch is needed when translating the <CODE>text.s</CODE> file, so thetext is converted from the input character set (usually ISO-8859-1) into thetarget character set (PETSCII) by the assembler. The compiler generated file<CODE>hello.s</CODE> does not contain any character constants, so specification of atarget is not necessary (it wouldn't do any harm, however).</P><P>If the assembler does not complain, we should now have two object files (named<CODE>hello.o</CODE> and <CODE>text.o</CODE>) in the current directory.</P><P>For more information about the assembler see <A HREF="ca65.html">ca65.html</A>.</P><HR><A HREF="intro-4.html">Next</A><A HREF="intro-2.html">Previous</A><A HREF="intro.html#toc3">Contents</A></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?