📄 cc65-4.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: Differences to the ISO standard</TITLE> <LINK HREF="cc65-5.html" REL=next> <LINK HREF="cc65-3.html" REL=previous> <LINK HREF="cc65.html#toc4" REL=contents></HEAD><BODY><A HREF="cc65-5.html">Next</A><A HREF="cc65-3.html">Previous</A><A HREF="cc65.html#toc4">Contents</A><HR><H2><A NAME="s4">4.</A> <A HREF="cc65.html#toc4">Differences to the ISO standard</A></H2><P>Here is a list of differences between the language, the compiler accepts,and the one defined by the ISO standard:</P><P><UL><LI> The compiler allows single line comments that start with //. Thisfeature is disabled in strict ANSI mode.</LI><LI> The compiler allows unnamed parameters in parameter lists. Thecompiler will not issue warnings about unused parameters that don'thave a name. This feature is disabled in strict ANSI mode.</LI><LI> The compiler has some additional keywords:<P><UL><LI><CODE>asm</CODE></LI><LI><CODE>__asm__</CODE></LI><LI><CODE>fastcall</CODE></LI><LI><CODE>__fastcall__</CODE></LI><LI><CODE>__AX__</CODE></LI><LI><CODE>__EAX__</CODE></LI><LI><CODE>__func__</CODE></LI><LI><CODE>__attribute__</CODE></LI></UL></P><P>The keywords without the underlines are disabled in strict ANSI mode.</P></LI><LI> The datatypes "float" and "double" are not available.</LI><LI> The compiler does not support bit fields.</LI><LI> C Functions may not return structs (or unions), and structs may notbe passed as parameters by value. However, struct assignment *is*possible.</LI><LI> Part of the C library is available only with fastcall callingconventions (see below). This means, that you may not mix pointers tothose functions with pointers to user written functions.</LI></UL></P><P>There may be some more minor differences, I'm currently not aware off. Thebiggest problem is the missing float data type. With this limitation inmind, you should be able to write fairly portable code.</P><HR><A HREF="cc65-5.html">Next</A><A HREF="cc65-3.html">Previous</A><A HREF="cc65.html#toc4">Contents</A></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -