?? cc65-6.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD> <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.20"> <TITLE>cc65 Users Guide: Predefined macros</TITLE> <LINK HREF="cc65-7.html" REL=next> <LINK HREF="cc65-5.html" REL=previous> <LINK HREF="cc65.html#toc6" REL=contents></HEAD><BODY><A HREF="cc65-7.html">Next</A><A HREF="cc65-5.html">Previous</A><A HREF="cc65.html#toc6">Contents</A><HR><H2><A NAME="s6">6.</A> <A HREF="cc65.html#toc6">Predefined macros</A></H2><P>The compiler defines several macros at startup:</P><P><DL><DT><B><CODE>__CC65__</CODE></B><DD><P>This macro is always defined. Its value is the version number of thecompiler in hex. Version 2.0.1 of the compiler will have this macro definedas 0x0201.</P><DT><B><CODE>__APPLE2__</CODE></B><DD><P>This macro is defined if the target is the Apple ][ (-t apple2).</P><DT><B><CODE>__ATARI__</CODE></B><DD><P>This macro is defined if the target is one of the Atari computers(400/800/130XL/800XL).</P><DT><B><CODE>__ATMOS__</CODE></B><DD><P>This macro is defined if the target is the Oric Atmos (-t atmos).</P><DT><B><CODE>__CBM__</CODE></B><DD><P>This macro is defined if the target system is one of the CBM targets.</P><DT><B><CODE>__C16__</CODE></B><DD><P>This macro is defined if the target is the c16 (-t c16).</P><DT><B><CODE>__C64__</CODE></B><DD><P>This macro is defined if the target is the c64 (-t c64).</P><DT><B><CODE>__C128__</CODE></B><DD><P>This macro is defined if the target is the c128 (-t c128).</P><DT><B><CODE>__CBM510__</CODE></B><DD><P>This macro is defined if the target is the CBM 500 series of computers.</P><DT><B><CODE>__CBM610__</CODE></B><DD><P>This macro is defined if the target is one of the CBM 600/700 family ofcomputers (called B series in the US).</P><DT><B><CODE>__GEOS__</CODE></B><DD><P>This macro is defined if you are compiling for the GEOS system (-t geos).</P><DT><B><CODE>__PET__</CODE></B><DD><P>This macro is defined if the target is the PET family of computers (-t pet).</P><DT><B><CODE>__PLUS4__</CODE></B><DD><P>This macro is defined if the target is the plus/4 (-t plus4).</P><DT><B><CODE>__VIC20__</CODE></B><DD><P>This macro is defined if the target is the vic20 (-t vic20).</P><DT><B><CODE>__FILE__</CODE></B><DD><P>This macro expands to a string containing the name of the C source file.</P><DT><B><CODE>__LINE__</CODE></B><DD><P>This macro expands to the current line number.</P><DT><B><CODE>__STRICT_ANSI__</CODE></B><DD><P>This macro is defined to 1 if the <CODE>-A</CODE> compiler option was given, andundefined otherwise.</P><DT><B><CODE>__OPT__</CODE></B><DD><P>Is defined if the compiler was called with the <CODE>-O</CODE> command line option.</P><DT><B><CODE>__OPT_i__</CODE></B><DD><P>Is defined if the compiler was called with the <CODE>-Oi</CODE> command line option.</P><DT><B><CODE>__OPT_r__</CODE></B><DD><P>Is defined if the compiler was called with the <CODE>-Or</CODE> command line option.</P><DT><B><CODE>__OPT_s__</CODE></B><DD><P>Is defined if the compiler was called with the <CODE>-Os</CODE> command line option.</P></DL></P><HR><A HREF="cc65-7.html">Next</A><A HREF="cc65-5.html">Previous</A><A HREF="cc65.html#toc6">Contents</A></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -