?? intro-5.html
字號:
<!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 easy way (using the cl65 utility)</TITLE> <LINK HREF="intro-6.html" REL=next> <LINK HREF="intro-4.html" REL=previous> <LINK HREF="intro.html#toc5" REL=contents></HEAD><BODY><A HREF="intro-6.html">Next</A><A HREF="intro-4.html">Previous</A><A HREF="intro.html#toc5">Contents</A><HR><H2><A NAME="using-cl65"></A> <A NAME="s5">5.</A> <A HREF="intro.html#toc5">The easy way (using the cl65 utility)</A></H2><P>The cl65 utility is able to do all of the steps described above in just onecall, and it has defaults for some options that are very well suited for ourexample.</P><P>To compile both files into one executable enter</P><P><BLOCKQUOTE><CODE><PRE> cl65 -O -I ../include hello.c text.s</PRE></CODE></BLOCKQUOTE></P><P>(The <CODE>-I</CODE> switch is not needed if you are working under Linux with theinclude files in the default path, or the <CODE>CC65_INC</CODE> environment variableis set correctly).</P><P>The cl65 utility knows, how to translate C files into object files (it willcall the compiler and then the assembler). It does also know how to createobject files from assembler files (it will call the assember for that). Itknows how to build an executable (it will pass all object files to thelinker). And, finally, it has the C64 as a default target and will supply thecorrect startup file and runtime library names to the linker, so you don'thave to care about that.</P><P>The one-liner above should give you a C64 executable named "<CODE>hello</CODE>" in thecurrent directory.</P><P>For more information about the compile & link utility see <A HREF="cl65.html">cl65.html</A>.</P><HR><A HREF="intro-6.html">Next</A><A HREF="intro-4.html">Previous</A><A HREF="intro.html#toc5">Contents</A></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -